	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_active_node                ## -- Begin function set_active_node
	.p2align	4, 0x90
_set_active_node:                       ## @set_active_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_active_last@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	leaq	1(%rax), %rcx
	movq	_active_size@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	cmpq	%rbx, %rcx
	jbe	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_SPL1
	movq	_active_list@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_MINBUFSZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, %rbx
	leal	(,%rbx,8), %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rbx, (%r15)
	movq	%rax, (%r13)
	xorl	%eax, %eax
	callq	_SPL0
	movq	(%r14), %rax
	leaq	1(%rax), %rcx
LBB0_3:
	movq	_active_list@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rcx, (%r14)
	movq	%r12, (%rdx,%rax,8)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	leaq	L_.str.1(%rip), %rax
	movq	_errmsg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_SPL0
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_active_last,8,3                ## @active_last
	.comm	_active_size,8,3                ## @active_size
	.comm	_active_list,8,3                ## @active_list
	.comm	_MINBUFSZ,4,2                   ## @MINBUFSZ
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

	.comm	_errmsg,8,3                     ## @errmsg
	.comm	_ERR,4,2                        ## @ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_active_node                ; -- Begin function set_active_node
	.p2align	2
_set_active_node:                       ; @set_active_node
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x20, _active_last@GOTPAGE
Lloh1:
	ldr	x20, [x20, _active_last@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x9, x8, #1
Lloh2:
	adrp	x22, _active_size@GOTPAGE
Lloh3:
	ldr	x22, [x22, _active_size@GOTPAGEOFF]
	ldr	x23, [x22]
Lloh4:
	adrp	x21, _active_list@GOTPAGE
Lloh5:
	ldr	x21, [x21, _active_list@GOTPAGEOFF]
	cmp	x9, x23
	b.ls	LBB0_3
; %bb.1:
	bl	_SPL1
	ldr	x0, [x21]
Lloh6:
	adrp	x8, _MINBUFSZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MINBUFSZ@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	add	x23, x23, x8
	lsl	w1, w23, #3
	bl	_realloc
	cbz	x0, LBB0_4
; %bb.2:
	str	x23, [x22]
	str	x0, [x21]
	bl	_SPL0
	ldr	x8, [x20]
	add	x9, x8, #1
LBB0_3:
	mov	w0, #0
	ldr	x10, [x21]
	str	x9, [x20]
	str	x19, [x10, x8, lsl #3]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
Lloh17:
	adrp	x8, _errmsg@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errmsg@GOTPAGEOFF]
Lloh19:
	adrp	x9, l_.str.1@PAGE
Lloh20:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh21:
	str	x9, [x8]
	bl	_SPL0
Lloh22:
	adrp	x8, _ERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh21
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_active_last,8,3                ; @active_last
	.comm	_active_size,8,3                ; @active_size
	.comm	_active_list,8,3                ; @active_list
	.comm	_MINBUFSZ,4,2                   ; @MINBUFSZ
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

	.comm	_errmsg,8,3                     ; @errmsg
	.comm	_ERR,4,2                        ; @ERR
.subsections_via_symbols
