	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_lib_depend_add              ## -- Begin function dt_lib_depend_add
	.p2align	4, 0x90
_dt_lib_depend_add:                     ## @dt_lib_depend_add
	.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	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%rdx, %rdx
	setne	%dil
	callq	_assert
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_dt_zalloc
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r12
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dt_alloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	subl	%r13d, %ebx
	addl	$2, %ebx
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_strlcpy
	movq	%r13, %rdi
	callq	_strdup
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_dt_list_append
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_dt_free
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_dt_free
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_dt_free
	movq	_EDT_NOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dt_set_errno                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_EDT_NOMEM,4,2                  ## @EDT_NOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_lib_depend_add              ; -- Begin function dt_lib_depend_add
	.p2align	2
_dt_lib_depend_add:                     ; @dt_lib_depend_add
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	cmp	x2, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x21
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x0
	mov	x0, x19
	mov	w1, #16
	bl	_dt_zalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dt_alloc
	str	x0, [x22]
	cbz	x0, LBB0_6
; %bb.3:
	sub	w8, w23, w21
	add	w2, w8, #2
	mov	x1, x21
	bl	_strlcpy
	mov	x0, x21
	bl	_strdup
	str	x0, [x22, #8]
	cbz	x0, LBB0_9
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	bl	_dt_list_append
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	mov	x0, x19
	mov	x1, x22
	bl	_dt_free
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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
LBB0_9:
	ldr	x1, [x22]
	mov	x0, x19
	bl	_dt_free
	mov	x0, x19
	mov	x1, x22
	bl	_dt_free
Lloh5:
	adrp	x8, _EDT_NOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EDT_NOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_dt_set_errno
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_EDT_NOMEM,4,2                  ; @EDT_NOMEM
.subsections_via_symbols
