	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_list_delete_nth_cell           ## -- Begin function list_delete_nth_cell
	.p2align	4, 0x90
_list_delete_nth_cell:                  ## @list_delete_nth_cell
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_check_list_invariants
	xorl	%edi, %edi
	testl	%r14d, %r14d
	js	LBB0_2
## %bb.1:
	cmpl	%r14d, (%rbx)
	setg	%dil
LBB0_2:
	callq	_Assert
	movl	(%rbx), %edx
	cmpl	$1, %edx
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_list_free
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_5
LBB0_4:
	movq	8(%rbx), %rax
	movslq	%r14d, %rcx
	leaq	(%rax,%rcx,4), %rdi
	leaq	(%rax,%rcx,4), %rsi
	addq	$4, %rsi
	notl	%r14d
	addl	%r14d, %edx
	shll	$2, %edx
	callq	_memmove
	decl	(%rbx)
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_list_delete_nth_cell           ; -- Begin function list_delete_nth_cell
	.p2align	2
_list_delete_nth_cell:                  ; @list_delete_nth_cell
	.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	x20, x1
	mov	x19, x0
	bl	_check_list_invariants
	tbnz	w20, #31, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, w20
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_Assert
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_list_free
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	b	LBB0_6
LBB0_5:
	ldr	x9, [x19, #8]
	add	x0, x9, w20, sxtw #2
	add	x1, x0, #4
	mvn	w9, w20
	add	w8, w8, w9
	lsl	w2, w8, #2
	bl	_memmove
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
.subsections_via_symbols
