	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	8(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movq	40(%rbx), %rcx
	leal	-1(%rax), %r8d
	testb	$3, %al
	je	LBB0_5
## %bb.2:
	movl	%eax, %edi
	andl	$3, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdx
	decl	32(%rdx)
	addq	$8, %rcx
	incq	%rsi
	cmpl	%esi, %edi
	jne	LBB0_3
## %bb.4:
	subl	%esi, %eax
LBB0_5:
	cmpl	$3, %r8d
	jb	LBB0_8
## %bb.6:
	decl	%eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdx
	decl	32(%rdx)
	movq	8(%rcx), %rdx
	decl	32(%rdx)
	movq	16(%rcx), %rdx
	decl	32(%rdx)
	movq	24(%rcx), %rdx
	decl	32(%rdx)
	addl	$-4, %eax
	addq	$32, %rcx
	cmpl	$-2, %eax
	jb	LBB0_7
LBB0_8:
	movl	$0, 8(%rbx)
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	16(%rbx), %rcx
	movq	%rcx, (%rax)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.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:
	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, x0
	ldr	x1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	w9, [x19, #8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x19, #40]
	add	w9, w9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8], #8
	ldr	w11, [x10, #32]
	sub	w11, w11, #1
	str	w11, [x10, #32]
	sub	w9, w9, #1
	cmp	w9, #1
	b.hi	LBB0_2
LBB0_3:
	str	wzr, [x19, #8]
	ldp	x9, x8, [x19, #16]
	str	x8, [x9]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x9, [x19, #16]
	str	x9, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.no_dead_strip	_remove_node
.subsections_via_symbols
