	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_node
_remove_node:                           ## @remove_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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	addq	%r14, %rsi
	movq	_SESSION_ID_OFF@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	leaq	-40(%rbp), %rdx
	callq	_find_node
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_find_replacement_node
	movq	%rax, %r15
	movq	_ADDR_NULL@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_1
## %bb.4:
	movq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_set_link
	jmp	LBB0_5
LBB0_1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_get_left
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_get_right
LBB0_3:
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_set_link
	movq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_set_link
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_get_left
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_set_left
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_get_right
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_set_right
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SESSION_ID_OFF,8,3             ## @SESSION_ID_OFF
	.comm	_ADDR_NULL,8,3                  ## @ADDR_NULL
	.no_dead_strip	_remove_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_node
_remove_node:                           ; @remove_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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SESSION_ID_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SESSION_ID_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x8, x1
	add	x1, x8, x9
	add	x2, sp, #8
	bl	_find_node
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_find_replacement_node
	mov	x21, x0
Lloh3:
	adrp	x22, _ADDR_NULL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ADDR_NULL@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_set_link
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_get_left
	mov	x2, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_get_right
	mov	x2, x0
LBB0_4:
	ldr	x1, [sp]
	mov	x0, x19
	bl	_set_link
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_set_link
	mov	x0, x19
	mov	x1, x20
	bl	_get_left
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_set_left
	mov	x0, x19
	mov	x1, x20
	bl	_get_right
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_set_right
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SESSION_ID_OFF,8,3             ; @SESSION_ID_OFF
	.comm	_ADDR_NULL,8,3                  ; @ADDR_NULL
	.no_dead_strip	_remove_node
.subsections_via_symbols
