	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remap_node
_remap_node:                            ## @remap_node
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movl	(%rsi), %ebx
	cmpl	%edx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	%rcx, (%r14)
	jmp	LBB0_9
LBB0_2:
	movq	%r8, %r12
	movq	%rsi, %r15
	movl	24(%r8), %edi
	movl	%ebx, %esi
	callq	_get_mapping
	movl	%eax, -40(%rbp)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%ebx, %edx
	callq	_aborterr
LBB0_4:
	movq	16(%r12), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_hash_find
	testl	%eax, %eax
	je	LBB0_5
LBB0_8:
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
LBB0_9:
	movl	$1, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_MCD_F_REFMERGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_7
## %bb.6:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_hash_find
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:
	movl	-40(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edi
	movl	%ecx, %edx
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	callq	_debug
	movq	%r15, (%r14)
	movl	4(%r12), %edi
	movq	%r14, %rsi
	callq	_list_add
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get mapping for tid %d <%x>\n"

	.comm	_MCD_F_REFMERGE,4,2             ## @MCD_F_REFMERGE
L_.str.1:                               ## @.str.1
	.asciz	"Remap couldn't find %d <%x> (from %d <%x>)\n"

	.no_dead_strip	_remap_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remap_node
_remap_node:                            ; @remap_node
	.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	x19, x0
	str	xzr, [sp, #8]
	ldr	w22, [x1]
	cmp	w22, w2
	b.ne	LBB0_2
; %bb.1:
	str	x3, [x19]
	b	LBB0_6
LBB0_2:
	mov	x20, x4
	mov	x21, x1
	ldr	w0, [x4, #24]
	mov	x1, x22
	bl	_get_mapping
	str	w0, [sp]
	cbnz	w0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x22
	bl	_aborterr
LBB0_4:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	mov	x1, sp
	add	x2, sp, #8
	bl	_hash_find
	cbz	w0, LBB0_8
LBB0_5:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_6:
	mov	w0, #1
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
LBB0_8:
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _MCD_F_REFMERGE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MCD_F_REFMERGE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	mov	x1, sp
	add	x2, sp, #8
	bl	_hash_find
	cbnz	w0, LBB0_5
LBB0_10:
	ldr	w2, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	mov	x3, x2
	mov	x4, x22
	mov	x5, x22
	bl	_debug
	str	x21, [x19]
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_list_add
	mov	w0, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get mapping for tid %d <%x>\n"

	.comm	_MCD_F_REFMERGE,4,2             ; @MCD_F_REFMERGE
l_.str.1:                               ; @.str.1
	.asciz	"Remap couldn't find %d <%x> (from %d <%x>)\n"

	.no_dead_strip	_remap_node
.subsections_via_symbols
