	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function change_parent_ptr
_change_parent_ptr:                     ## @change_parent_ptr
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	_RBTREE_NULL@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	8(%rsi), %rcx
	movl	$1, %edi
	cmpq	%r15, %rcx
	je	LBB0_6
## %bb.3:
	movq	(%rbx), %rax
	cmpq	%r15, %rax
	je	LBB0_6
## %bb.4:
	cmpq	%r14, %rcx
	je	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	cmpq	%r14, %rax
	sete	%dil
LBB0_6:
	callq	_log_assert
	cmpq	%r15, 8(%rbx)
	je	LBB0_7
## %bb.8:
	cmpq	%r15, (%rbx)
	jne	LBB0_11
	jmp	LBB0_9
LBB0_1:
	movq	%rdi, %r12
	xorl	%edi, %edi
	cmpq	%r15, (%r12)
	sete	%dil
	callq	_log_assert
	cmpq	%r15, (%r12)
	jne	LBB0_11
	jmp	LBB0_10
LBB0_7:
	movq	%r14, 8(%rbx)
	cmpq	%r15, (%rbx)
	jne	LBB0_11
LBB0_9:
	movq	%rbx, %r12
LBB0_10:
	movq	%r14, (%r12)
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RBTREE_NULL,8,3                ## @RBTREE_NULL
	.no_dead_strip	_change_parent_ptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function change_parent_ptr
_change_parent_ptr:                     ; @change_parent_ptr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x2
Lloh0:
	adrp	x8, _RBTREE_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RBTREE_NULL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.eq	LBB0_3
; %bb.1:
	mov	x21, x1
	ldr	x8, [x1, #8]
	cmp	x8, x20
	b.eq	LBB0_4
; %bb.2:
	ldr	x9, [x21]
	mov	w10, #1
	cmp	x9, x19
	cset	w11, eq
	cmp	x9, x20
	ccmp	x8, x19, #4, ne
	csel	w0, w10, w11, eq
	b	LBB0_5
LBB0_3:
	mov	x22, x0
	ldr	x8, [x0]
	cmp	x8, x20
	cset	w0, eq
	bl	_log_assert
	ldr	x8, [x22]
	cmp	x8, x20
	b.ne	LBB0_10
	b	LBB0_9
LBB0_4:
	mov	w0, #1
LBB0_5:
	bl	_log_assert
	ldr	x8, [x21, #8]
	cmp	x8, x20
	b.ne	LBB0_7
; %bb.6:
	str	x19, [x21, #8]
LBB0_7:
	ldr	x8, [x21]
	cmp	x8, x20
	b.ne	LBB0_10
; %bb.8:
	mov	x22, x21
LBB0_9:
	str	x19, [x22]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RBTREE_NULL,8,3                ; @RBTREE_NULL
	.no_dead_strip	_change_parent_ptr
.subsections_via_symbols
