	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge_types
_merge_types:                           ## @merge_types
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, 32(%rsi)
	movq	_TDATA_LAYOUT_HASH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_tdesc_layouthash@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_tdesc_layoutcmp@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hash_new
	movq	%rax, 24(%rbx)
	leaq	-24(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	_merge_type_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_hash_iter
	movq	24(%rbx), %rdi
	movq	_add_tdtba_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_hash_iter
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movl	%eax, %edx
	callq	_debug
	movq	32(%rbx), %rax
	movq	(%rax), %rdi
	movq	_add_iitba_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_list_iter
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edi
	movl	%eax, %edx
	callq	_debug
	movq	32(%rbx), %rax
	movq	(%rax), %rdi
	callq	_list_count
	xorl	%edi, %edi
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	24(%rbx), %rdi
	callq	_hash_count
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
LBB0_2:
	callq	_assert
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	movq	_add_tdtbr_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_list_iter
	leaq	L_.str.2(%rip), %rsi
	movl	$3, %edi
	movl	%eax, %edx
	callq	_debug
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	callq	_list_count
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	callq	_aborterr
LBB0_4:
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_redir_mstr_fwds
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDATA_LAYOUT_HASH_SIZE,4,2     ## @TDATA_LAYOUT_HASH_SIZE
	.comm	_tdesc_layouthash,4,2           ## @tdesc_layouthash
	.comm	_tdesc_layoutcmp,4,2            ## @tdesc_layoutcmp
	.comm	_merge_type_cb,4,2              ## @merge_type_cb
	.comm	_add_tdtba_cb,4,2               ## @add_tdtba_cb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add_tdtba_cb added %d items\n"

	.comm	_add_iitba_cb,4,2               ## @add_iitba_cb
L_.str.1:                               ## @.str.1
	.asciz	"add_iitba_cb added %d items\n"

	.comm	_add_tdtbr_cb,4,2               ## @add_tdtbr_cb
L_.str.2:                               ## @.str.2
	.asciz	"add_tdtbr_cb added %d items\n"

L_.str.3:                               ## @.str.3
	.asciz	"Couldn't remap all nodes\n"

	.no_dead_strip	_merge_types
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function merge_types
_merge_types:                           ; @merge_types
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [sp]
	add	x8, sp, #8
	str	x8, [x1, #32]
Lloh0:
	adrp	x8, _TDATA_LAYOUT_HASH_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TDATA_LAYOUT_HASH_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _tdesc_layouthash@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tdesc_layouthash@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _tdesc_layoutcmp@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tdesc_layoutcmp@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_hash_new
	mov	x8, sp
	stp	x8, x0, [x19, #16]
Lloh9:
	adrp	x8, _merge_type_cb@GOTPAGE
Lloh10:
	ldr	x8, [x8, _merge_type_cb@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_hash_iter
	ldr	x0, [x19, #24]
Lloh12:
	adrp	x8, _add_tdtba_cb@GOTPAGE
Lloh13:
	ldr	x8, [x8, _add_tdtba_cb@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_hash_iter
	mov	x2, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_debug
	ldr	x8, [x19, #32]
	ldr	x0, [x8]
Lloh17:
	adrp	x8, _add_iitba_cb@GOTPAGE
Lloh18:
	ldr	x8, [x8, _add_iitba_cb@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_list_iter
	mov	x2, x0
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	bl	_debug
	ldr	x8, [x19, #32]
	ldr	x0, [x8]
	bl	_list_count
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19, #24]
	bl	_hash_count
	cmp	x0, #0
	cset	w0, eq
LBB0_3:
	bl	_assert
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
Lloh22:
	adrp	x8, _add_tdtbr_cb@GOTPAGE
Lloh23:
	ldr	x8, [x8, _add_tdtbr_cb@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_list_iter
	mov	x2, x0
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #3
	bl	_debug
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_list_count
	cbz	x0, LBB0_5
; %bb.4:
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_aborterr
LBB0_5:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_redir_mstr_fwds
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_TDATA_LAYOUT_HASH_SIZE,4,2     ; @TDATA_LAYOUT_HASH_SIZE
	.comm	_tdesc_layouthash,4,2           ; @tdesc_layouthash
	.comm	_tdesc_layoutcmp,4,2            ; @tdesc_layoutcmp
	.comm	_merge_type_cb,4,2              ; @merge_type_cb
	.comm	_add_tdtba_cb,4,2               ; @add_tdtba_cb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add_tdtba_cb added %d items\n"

	.comm	_add_iitba_cb,4,2               ; @add_iitba_cb
l_.str.1:                               ; @.str.1
	.asciz	"add_iitba_cb added %d items\n"

	.comm	_add_tdtbr_cb,4,2               ; @add_tdtbr_cb
l_.str.2:                               ; @.str.2
	.asciz	"add_tdtbr_cb added %d items\n"

l_.str.3:                               ; @.str.3
	.asciz	"Couldn't remap all nodes\n"

	.no_dead_strip	_merge_types
.subsections_via_symbols
