	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Lst_Remove                     ## -- Begin function Lst_Remove
	.p2align	4, 0x90
_Lst_Remove:                            ## @Lst_Remove
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_LstValid
	movq	_FAILURE@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_20
## %bb.1:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_LstNodeValid
	testl	%eax, %eax
	je	LBB0_20
## %bb.2:
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	16(%r14), %rcx
	movq	%rcx, 16(%rax)
LBB0_4:
	movq	16(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movq	%rax, 24(%rcx)
LBB0_6:
	movq	(%r15), %rax
	cmpq	%r14, %rax
	je	LBB0_7
## %bb.8:
	cmpq	%r14, 40(%r15)
	je	LBB0_9
LBB0_10:
	cmpq	$0, 32(%r15)
	jne	LBB0_11
	jmp	LBB0_14
LBB0_7:
	movq	24(%r14), %rax
	movq	%rax, (%r15)
	cmpq	%r14, 40(%r15)
	jne	LBB0_10
LBB0_9:
	movq	%rcx, 40(%r15)
	cmpq	$0, 32(%r15)
	je	LBB0_14
LBB0_11:
	cmpq	%r14, 16(%r15)
	jne	LBB0_14
## %bb.12:
	movq	24(%r15), %rcx
	movq	%rcx, 16(%r15)
	testq	%rcx, %rcx
	jne	LBB0_14
## %bb.13:
	movq	_Unknown@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r15)
LBB0_14:
	cmpq	%r14, %rax
	je	LBB0_15
## %bb.16:
	cmpq	$0, (%r14)
	je	LBB0_17
LBB0_18:
	movq	_LN_DELETED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	jmp	LBB0_19
LBB0_15:
	movq	$0, (%r15)
	cmpq	$0, (%r14)
	jne	LBB0_18
LBB0_17:
	movq	%r14, %rdi
	callq	_free
LBB0_19:
	movq	_SUCCESS@GOTPCREL(%rip), %rbx
LBB0_20:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_Unknown,4,2                    ## @Unknown
	.comm	_LN_DELETED,4,2                 ## @LN_DELETED
	.comm	_SUCCESS,4,2                    ## @SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Lst_Remove                     ; -- Begin function Lst_Remove
	.p2align	2
_Lst_Remove:                            ; @Lst_Remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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
	bl	_LstValid
	cbz	w0, LBB0_17
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_LstNodeValid
	cbz	w0, LBB0_17
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x9, [x19, #16]
	str	x9, [x8, #16]
LBB0_4:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_6
; %bb.5:
	str	x8, [x9, #24]
LBB0_6:
	ldr	x8, [x20]
	cmp	x8, x19
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19, #24]
	str	x8, [x20]
LBB0_8:
	ldr	x10, [x20, #40]
	cmp	x10, x19
	b.ne	LBB0_10
; %bb.9:
	str	x9, [x20, #40]
LBB0_10:
	ldr	x9, [x20, #32]
	cbz	x9, LBB0_14
; %bb.11:
	ldr	x9, [x20, #16]
	cmp	x9, x19
	b.ne	LBB0_14
; %bb.12:
	ldr	x9, [x20, #24]
	str	x9, [x20, #16]
	cbnz	x9, LBB0_14
; %bb.13:
Lloh0:
	adrp	x9, _Unknown@GOTPAGE
Lloh1:
	ldr	x9, [x9, _Unknown@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x20, #8]
LBB0_14:
	cmp	x8, x19
	b.eq	LBB0_18
; %bb.15:
	ldr	x8, [x19]
	cbz	x8, LBB0_19
LBB0_16:
Lloh3:
	adrp	x8, _LN_DELETED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LN_DELETED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_20
LBB0_17:
Lloh6:
	adrp	x8, _FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
	str	xzr, [x20]
	ldr	x8, [x19]
	cbnz	x8, LBB0_16
LBB0_19:
	mov	x0, x19
	bl	_free
LBB0_20:
Lloh8:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_Unknown,4,2                    ; @Unknown
	.comm	_LN_DELETED,4,2                 ; @LN_DELETED
	.comm	_SUCCESS,4,2                    ; @SUCCESS
.subsections_via_symbols
