	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdb_ns_new
_sdb_ns_new:                            ## @sdb_ns_new
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SDB_MAX_PATH@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	cmpb	$0, (%rdi)
	je	LBB0_6
## %bb.3:
	cmpb	$0, (%r15)
	je	LBB0_6
## %bb.4:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	callq	_strlen
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r12,%rax), %ecx
	addl	$3, %ecx
	cmpl	(%r13), %ecx
	jg	LBB0_18
## %bb.5:
	movq	%r12, %rdx
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	movq	%rax, %r12
	movq	%rdx, %rbx
	callq	_memcpy
	movslq	%ebx, %r13
	leaq	(%r14,%r13), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_memcpy
	leaq	(%r14,%r13), %rdi
	incq	%rdi
	incl	%r12d
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_7
LBB0_6:
	movb	$0, (%r14)
LBB0_7:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:
	movq	%rax, %rbx
	movl	%r12d, 16(%rax)
	testq	%r15, %r15
	je	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	callq	_strdup
	jmp	LBB0_11
LBB0_9:
	xorl	%eax, %eax
LBB0_11:
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	callq	_sdb_new0
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movq	8(%rax), %rdi
	callq	_free
	movq	8(%rbx), %r12
	movq	$0, 8(%r12)
	cmpb	$0, (%r14)
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, 8(%r12)
LBB0_14:
	movq	(%r12), %rdi
	callq	_free
	testq	%r15, %r15
	je	LBB0_19
## %bb.15:
	cmpb	$0, (%r15)
	je	LBB0_19
## %bb.16:
	movq	%r15, %rdi
	callq	_strdup
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_19
LBB0_17:
	movq	(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SDB_MAX_PATH,4,2               ## @SDB_MAX_PATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.no_dead_strip	_sdb_ns_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdb_ns_new
_sdb_ns_new:                            ; @sdb_ns_new
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _SDB_MAX_PATH@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SDB_MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x0, [x0]
	cbz	x0, LBB0_6
; %bb.1:
	cbz	x19, LBB0_6
; %bb.2:
	ldrb	w8, [x0]
	cbz	w8, LBB0_6
; %bb.3:
	ldrb	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:
	bl	_strlen
	mov	x24, x0
	mov	x0, x19
	bl	_strlen
	add	w8, w24, w0
	add	w8, w8, #3
	ldr	w9, [x25]
	cmp	w8, w9
	b.gt	LBB0_18
; %bb.5:
	mov	x23, x0
	ldr	x1, [x21]
	mov	x0, x20
	mov	x2, x24
	bl	_memcpy
	add	x21, x20, w24, sxtw
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #1
	bl	_memcpy
	add	x0, x21, #1
	add	w2, w23, #1
	mov	x1, x19
	bl	_memcpy
	b	LBB0_7
LBB0_6:
	strb	wzr, [x20]
LBB0_7:
	mov	w0, #24
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_19
; %bb.8:
	str	w22, [x21, #16]
	cbz	x19, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_strdup
	b	LBB0_11
LBB0_10:
	mov	x0, #0
LBB0_11:
	str	x0, [x21]
	bl	_sdb_new0
	str	x0, [x21, #8]
	cbz	x0, LBB0_17
; %bb.12:
	ldr	x0, [x0, #8]
	bl	_free
	ldr	x22, [x21, #8]
	str	xzr, [x22, #8]
	ldrb	w8, [x20]
	cbz	w8, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_strdup
	str	x0, [x22, #8]
LBB0_14:
	ldr	x0, [x22]
	bl	_free
	cbz	x19, LBB0_19
; %bb.15:
	ldrb	w8, [x19]
	cbz	w8, LBB0_19
; %bb.16:
	mov	x0, x19
	bl	_strdup
	ldr	x8, [x21, #8]
	str	x0, [x8]
	b	LBB0_19
LBB0_17:
	ldr	x0, [x21]
	bl	_free
	mov	x0, x21
	bl	_free
LBB0_18:
	mov	x21, #0
LBB0_19:
	ldur	x8, [x29, #-72]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x21
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SDB_MAX_PATH,4,2               ; @SDB_MAX_PATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.no_dead_strip	_sdb_ns_new
.subsections_via_symbols
