	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_replacement_node
_find_replacement_node:                 ## @find_replacement_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	%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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_get_left
	movq	_ADDR_NULL@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_get_right
	movq	%rax, %r13
	cmpq	(%r14), %rax
	jne	LBB0_7
## %bb.2:
	movq	%r13, (%rbx)
	movq	(%r14), %r13
	jmp	LBB0_12
LBB0_3:
	movq	%rax, %r13
	movq	_TREE_LEFT_OFF@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_get_right
	cmpq	(%r14), %rax
	je	LBB0_11
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_TREE_RIGHT_OFF@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	movq	%rax, %r13
	movq	(%r14), %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_get_right
	movq	_ADDR_NULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
	jmp	LBB0_10
LBB0_7:
	movq	_TREE_RIGHT_OFF@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_get_left
	cmpq	(%r14), %rax
	je	LBB0_11
## %bb.8:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_TREE_LEFT_OFF@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	movq	%rax, %r13
	movq	(%r14), %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_get_left
	movq	_ADDR_NULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_10:
	addq	%rbx, %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	movq	%r15, (%rbx)
LBB0_12:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADDR_NULL,8,3                  ## @ADDR_NULL
	.comm	_TREE_LEFT_OFF,8,3              ## @TREE_LEFT_OFF
	.comm	_TREE_RIGHT_OFF,8,3             ## @TREE_RIGHT_OFF
	.no_dead_strip	_find_replacement_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_replacement_node
_find_replacement_node:                 ; @find_replacement_node
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_get_left
Lloh0:
	adrp	x23, _ADDR_NULL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ADDR_NULL@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x22
	bl	_get_right
	mov	x20, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	str	x20, [x19]
	ldr	x20, [x23]
	b	LBB0_12
LBB0_3:
	mov	x20, x0
Lloh2:
	adrp	x8, _TREE_LEFT_OFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TREE_LEFT_OFF@GOTPAGEOFF]
Lloh4:
	ldr	x24, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_get_right
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.4:
Lloh5:
	adrp	x22, _TREE_RIGHT_OFF@GOTPAGE
Lloh6:
	ldr	x22, [x22, _TREE_RIGHT_OFF@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x20
	mov	x20, x0
	ldr	x25, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	_get_right
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_5
	b	LBB0_10
LBB0_6:
Lloh7:
	adrp	x8, _TREE_RIGHT_OFF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TREE_RIGHT_OFF@GOTPAGEOFF]
Lloh9:
	ldr	x24, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_get_left
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_7:
	add	x8, x24, x22
	b	LBB0_11
LBB0_8:
Lloh10:
	adrp	x22, _TREE_LEFT_OFF@GOTPAGE
Lloh11:
	ldr	x22, [x22, _TREE_LEFT_OFF@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x20
	mov	x20, x0
	ldr	x25, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	_get_left
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_10:
	add	x8, x25, x24
LBB0_11:
	str	x8, [x19]
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ADDR_NULL,8,3                  ; @ADDR_NULL
	.comm	_TREE_LEFT_OFF,8,3              ; @TREE_LEFT_OFF
	.comm	_TREE_RIGHT_OFF,8,3             ; @TREE_RIGHT_OFF
	.no_dead_strip	_find_replacement_node
.subsections_via_symbols
