	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dt_opt_cpp_path
_dt_opt_cpp_path:                       ## @dt_opt_cpp_path
	.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, %rbx
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_EDT_BADOPTCTX@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EDT_BADOPTVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	%rsi, %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strbasename
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	8(%rbx), %rdi
	callq	_free
	movq	%r14, 8(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_EDT_NOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dt_set_errno                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EDT_BADOPTVAL,4,2              ## @EDT_BADOPTVAL
	.comm	_EDT_BADOPTCTX,4,2              ## @EDT_BADOPTCTX
	.comm	_EDT_NOMEM,4,2                  ## @EDT_NOMEM
	.no_dead_strip	_dt_opt_cpp_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dt_opt_cpp_path
_dt_opt_cpp_path:                       ; @dt_opt_cpp_path
	.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	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EDT_BADOPTCTX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EDT_BADOPTCTX@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _EDT_BADOPTVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EDT_BADOPTVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	x0, x1
	bl	_strdup
	cbz	x0, LBB0_6
; %bb.5:
	mov	x20, x0
	bl	_strbasename
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x0, [x19, #8]
	bl	_free
	str	x20, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh4:
	adrp	x8, _EDT_NOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EDT_NOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dt_set_errno
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EDT_BADOPTVAL,4,2              ; @EDT_BADOPTVAL
	.comm	_EDT_BADOPTCTX,4,2              ; @EDT_BADOPTCTX
	.comm	_EDT_NOMEM,4,2                  ; @EDT_NOMEM
	.no_dead_strip	_dt_opt_cpp_path
.subsections_via_symbols
