	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_folder
_add_folder:                            ## @add_folder
	.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
	movq	%rdi, %r14
	movl	$32, %edi
	callq	*32(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$-1, 28(%rbx)
	movl	28(%r14), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movl	24(%r14), %eax
	movl	%eax, 12(%rbx)
	leaq	8(%rbx), %rdi
	callq	_list_init
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_list_init
	leaq	20(%r14), %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	movl	8(%r14), %eax
	movl	16(%r14), %ecx
	addl	%ecx, %eax
	addl	$4, %eax
	movl	%eax, 16(%r14)
	incl	(%r14)
	jmp	LBB0_3
LBB0_1:
	movq	_FCIERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ERROR_NOT_ENOUGH_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_set_error
LBB0_3:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FCIERR_ALLOC_FAIL,4,2          ## @FCIERR_ALLOC_FAIL
	.comm	_ERROR_NOT_ENOUGH_MEMORY,4,2    ## @ERROR_NOT_ENOUGH_MEMORY
	.no_dead_strip	_add_folder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_folder
_add_folder:                            ; @add_folder
	.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, x0
	ldr	x8, [x0, #32]
	mov	w0, #32
	blr	x8
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #-1
	ldp	w10, w9, [x20, #24]
	stp	w9, w8, [x19, #24]
	str	xzr, [x19, #16]
	str	w10, [x19, #12]
	add	x0, x19, #8
	bl	_list_init
	add	x0, x19, #4
	bl	_list_init
	add	x0, x20, #20
	mov	x1, x19
	bl	_list_add_tail
	ldr	w8, [x20, #8]
	ldr	w9, [x20, #16]
	add	w8, w8, w9
	add	w8, w8, #4
	str	w8, [x20, #16]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _FCIERR_ALLOC_FAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FCIERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ERROR_NOT_ENOUGH_MEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR_NOT_ENOUGH_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_set_error
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FCIERR_ALLOC_FAIL,4,2          ; @FCIERR_ALLOC_FAIL
	.comm	_ERROR_NOT_ENOUGH_MEMORY,4,2    ; @ERROR_NOT_ENOUGH_MEMORY
	.no_dead_strip	_add_folder
.subsections_via_symbols
