	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFMergeFieldInfo             ## -- Begin function TIFFMergeFieldInfo
	.p2align	4, 0x90
_TIFFMergeFieldInfo:                    ## @TIFFMergeFieldInfo
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	testq	%rdx, %rdx
	jle	LBB0_2
## %bb.1:
	movq	16(%rbx), %rsi
	incq	%rdx
	leaq	_TIFFMergeFieldInfo.reason(%rip), %r8
	movq	%rbx, %rdi
	movl	$32, %ecx
	callq	__TIFFCheckRealloc
	jmp	LBB0_3
LBB0_2:
	leaq	_TIFFMergeFieldInfo.reason(%rip), %rcx
	movl	$1, %esi
	movq	%rbx, %rdi
	movl	$32, %edx
	callq	__TIFFCheckMalloc
LBB0_3:
	movq	%rax, 16(%rbx)
	leaq	L_.str(%rip), %r15
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	(%rbx), %r14
	leaq	1(%r14), %rcx
	movq	%rcx, (%rbx)
	movq	_tfiatOther@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shlq	$5, %r14
	movl	%ecx, 24(%rax,%r14)
	movq	%r13, (%rax,%r14)
	movq	%r13, 8(%rax,%r14)
	leaq	_TIFFMergeFieldInfo.reason(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$64, %edx
	callq	__TIFFCheckMalloc
	movq	%r13, %rcx
	movq	%rax, %r13
	movq	16(%rbx), %rax
	movq	%r13, 16(%rax,%r14)
	testq	%r13, %r13
	je	LBB0_11
## %bb.5:
	testq	%rcx, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	$20, %ebx
	movq	%rcx, %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%r12,%rbx), %esi
	movl	(%r12,%rbx), %edi
	movdqu	-4(%r12,%rbx), %xmm0
	pshufd	$201, %xmm0, %xmm0              ## xmm0 = xmm0[1,2,0,3]
	movdqu	%xmm0, 8(%r13,%rbx,2)
	movq	$0, (%r13,%rbx,2)
	movl	-16(%r12,%rbx), %edx
	callq	__TIFFSetGetType
	movq	%rax, -8(%r13,%rbx,2)
	movl	(%r12,%rbx), %edi
	movl	-16(%r12,%rbx), %edx
	movl	-4(%r12,%rbx), %esi
	callq	__TIFFSetGetType
	movq	%rax, -16(%r13,%rbx,2)
	movups	-20(%r12,%rbx), %xmm0
	movups	%xmm0, -32(%r13,%rbx,2)
	movq	$0, -40(%r13,%rbx,2)
	addq	$32, %rbx
	decq	%r15
	jne	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rax
	movq	16(%rax,%r14), %r13
LBB0_9:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	__TIFFMergeFields
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_12
## %bb.10:
	leaq	L_.str.1(%rip), %r15
LBB0_11:
	movl	8(%rbx), %edi
	leaq	_TIFFMergeFieldInfo.module(%rip), %rsi
	movq	%r15, %rdx
	callq	_TIFFErrorExt
	movl	$-1, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @TIFFMergeFieldInfo.module
_TIFFMergeFieldInfo.module:
	.asciz	"TIFFMergeFieldInfo"

	.p2align	4                               ## @TIFFMergeFieldInfo.reason
_TIFFMergeFieldInfo.reason:
	.asciz	"for fields array"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate fields array"

	.comm	_tfiatOther,4,2                 ## @tfiatOther
L_.str.1:                               ## @.str.1
	.asciz	"Setting up field info failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFMergeFieldInfo             ; -- Begin function TIFFMergeFieldInfo
	.p2align	2
_TIFFMergeFieldInfo:                    ; @TIFFMergeFieldInfo
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x1, [x19, #16]
	add	x2, x8, #1
Lloh0:
	adrp	x4, _TIFFMergeFieldInfo.reason@PAGE
Lloh1:
	add	x4, x4, _TIFFMergeFieldInfo.reason@PAGEOFF
	mov	x0, x19
	mov	w3, #32
	bl	__TIFFCheckRealloc
	str	x0, [x19, #16]
	cbnz	x0, LBB0_3
	b	LBB0_10
LBB0_2:
Lloh2:
	adrp	x3, _TIFFMergeFieldInfo.reason@PAGE
Lloh3:
	add	x3, x3, _TIFFMergeFieldInfo.reason@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	mov	w2, #32
	bl	__TIFFCheckMalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_10
LBB0_3:
	ldr	x22, [x19]
	add	x8, x22, #1
	str	x8, [x19]
Lloh4:
	adrp	x8, _tfiatOther@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tfiatOther@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	lsl	x23, x22, #5
	add	x9, x0, x23
	str	w8, [x9, #24]
	stp	x20, x20, [x9]
Lloh7:
	adrp	x3, _TIFFMergeFieldInfo.reason@PAGE
Lloh8:
	add	x3, x3, _TIFFMergeFieldInfo.reason@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	w2, #64
	bl	__TIFFCheckMalloc
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	str	x0, [x8, #16]
	cbz	x0, LBB0_10
; %bb.4:
	mov	x1, x0
	cbz	x20, LBB0_8
; %bb.5:
	add	x23, x1, #60
	add	x21, x21, #16
	mov	x24, x20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #12]
	str	w8, [x23]
	ldr	w1, [x21]
	stur	w1, [x23, #-4]
	ldur	d0, [x21, #4]
	stur	d0, [x23, #-12]
	stur	xzr, [x23, #-20]
	ldur	w2, [x21, #-12]
	fmov	w0, s0
	bl	__TIFFSetGetType
	stur	x0, [x23, #-28]
	ldp	w1, w0, [x21]
	ldur	w2, [x21, #-12]
	bl	__TIFFSetGetType
	stur	x0, [x23, #-36]
	ldur	q0, [x21, #-16]
	stur	q0, [x23, #-52]
	stur	xzr, [x23, #-60]
	add	x23, x23, #64
	add	x21, x21, #32
	subs	x24, x24, #1
	b.ne	LBB0_6
; %bb.7:
	ldr	x8, [x19, #16]
	add	x8, x8, x22, lsl #5
	ldr	x1, [x8, #16]
LBB0_8:
	mov	x0, x19
	mov	x2, x20
	bl	__TIFFMergeFields
	cbz	w0, LBB0_11
; %bb.9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_12:
	ldr	w0, [x19, #8]
Lloh13:
	adrp	x1, _TIFFMergeFieldInfo.module@PAGE
Lloh14:
	add	x1, x1, _TIFFMergeFieldInfo.module@PAGEOFF
	bl	_TIFFErrorExt
	mov	w0, #-1
LBB0_13:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFMergeFieldInfo.module:             ; @TIFFMergeFieldInfo.module
	.asciz	"TIFFMergeFieldInfo"

_TIFFMergeFieldInfo.reason:             ; @TIFFMergeFieldInfo.reason
	.asciz	"for fields array"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate fields array"

	.comm	_tfiatOther,4,2                 ; @tfiatOther
l_.str.1:                               ; @.str.1
	.asciz	"Setting up field info failed"

.subsections_via_symbols
