	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_pool
_add_pool:                              ## @add_pool
	.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, %r15
	movq	%rdi, %r14
	movl	$16, %edi
	callq	_safe_malloc
	movq	%rax, %rbx
	movq	%r14, 8(%rax)
	movl	16(%r15), %edx
	movq	%rax, %rdi
	movq	%rax, %rsi
	callq	_uu_avl_node_init
	movl	(%r15), %edi
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_uu_avl_find
	testq	%rax, %rax
	je	LBB0_1
LBB0_4:
	movq	%r14, %rdi
	callq	_zpool_close
	movq	%rbx, %rdi
	callq	_free
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_1:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_zpool_expand_proplist
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:
	movl	(%r15), %edi
	movl	-28(%rbp), %edx
	movq	%rbx, %rsi
	callq	_uu_avl_insert
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_add_pool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_pool
_add_pool:                              ; @add_pool
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	mov	w0, #16
	bl	_safe_malloc
	mov	x19, x0
	str	x20, [x0, #8]
	ldr	w2, [x21, #16]
	mov	x1, x0
	bl	_uu_avl_node_init
	ldr	w0, [x21]
	add	x3, sp, #12
	mov	x1, x19
	mov	x2, #0
	bl	_uu_avl_find
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x20
	bl	_zpool_close
	mov	x0, x19
	bl	_free
	mov	w0, #-1
	b	LBB0_5
LBB0_2:
	ldr	x1, [x21, #8]
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_zpool_expand_proplist
	cbnz	x0, LBB0_1
LBB0_4:
	ldr	w0, [x21]
	ldr	w2, [sp, #12]
	mov	x1, x19
	bl	_uu_avl_insert
	mov	w0, #0
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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_add_pool
.subsections_via_symbols
