	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TIFFReadDirectoryFindFieldInfo
_TIFFReadDirectoryFindFieldInfo:        ## @TIFFReadDirectoryFindFieldInfo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	8(%rdi), %r10d
	testl	%r10d, %r10d
	je	LBB0_10
## %bb.1:
	movq	(%rdi), %r8
	movl	$-1, %r9d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r9), %eax
	movl	%ecx, %r10d
	cmpl	%ecx, %eax
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r10,%r9), %edi
	movl	%edi, %ecx
	shrl	$31, %ecx
	addl	%edi, %ecx
	sarl	%ecx
	movslq	%ecx, %rdi
	movq	(%r8,%rdi,8), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %r9d
	movl	%r10d, %ecx
	jmp	LBB0_9
LBB0_10:
	movq	_FAILED_FII@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	jmp	LBB0_11
LBB0_3:
	movq	%rdi, %rax
	shlq	$32, %rax
	movabsq	$-4294967296, %r9               ## imm = 0xFFFFFFFF00000000
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rcx
	subq	$1, %rdi
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r8,%rdi,8), %r10
	leaq	(%rcx,%r9), %rax
	cmpq	%rsi, (%r10)
	je	LBB0_4
LBB0_6:
	sarq	$32, %rcx
LBB0_11:
	movq	%rcx, (%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAILED_FII,8,3                 ## @FAILED_FII
	.no_dead_strip	_TIFFReadDirectoryFindFieldInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFReadDirectoryFindFieldInfo
_TIFFReadDirectoryFindFieldInfo:        ; @TIFFReadDirectoryFindFieldInfo
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x9, [x0]
	mov	w10, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w8, w10
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w12, w11, #1
	sbfx	x11, x11, #1, #31
	ldr	x12, [x9, w12, sxtw #3]
	ldr	x12, [x12]
	cmp	x12, x1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	csel	w10, w11, w10, lt
	csel	w8, w8, w11, lt
	add	w11, w10, #1
	cmp	w11, w8
	b.ne	LBB0_2
LBB0_4:
Lloh0:
	adrp	x8, _FAILED_FII@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FAILED_FII@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x2]
	ret
LBB0_5:
	lsl	x10, x11, #32
	sub	x8, x9, #8
	mov	x9, #-4294967296
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x12, x10
	cbz	x11, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x8, x11, lsl #3]
	sub	x11, x11, #1
	ldr	x13, [x10]
	add	x10, x12, x9
	cmp	x13, x1
	b.eq	LBB0_6
LBB0_8:
	asr	x8, x12, #32
	str	x8, [x2]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FAILED_FII,8,3                 ; @FAILED_FII
	.no_dead_strip	_TIFFReadDirectoryFindFieldInfo
.subsections_via_symbols
