	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_dp
_build_dp:                              ## @build_dp
	.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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	movq	%rsi, %rdi
	callq	_strdup
	movq	%rax, %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movb	$92, (%rax)
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rax
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$47, %cl
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%cl, %cl
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_path_to_file_dp
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_free
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	testq	%r13, %r13
	je	LBB0_4
## %bb.7:
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_asprintf
	movl	$8192, %edi                     ## imm = 0x2000
	callq	_malloc
	movq	%rax, %r12
	movq	-48(%rbp), %rdi
	movq	%rax, %rsi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_efidp_parse_device_path
	cmpq	$8192, %rax                     ## imm = 0x2000
	ja	LBB0_10
## %bb.8:
	testq	%rax, %rax
	je	LBB0_9
## %bb.13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_4:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %r14
LBB0_10:
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_free
	movl	%ebx, %r15d
LBB0_12:
	movq	-48(%rbp), %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_free
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_build_dp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_dp
_build_dp:                              ; @build_dp
	.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	x20, x2
	mov	x21, x0
	str	xzr, [sp, #8]
	mov	x0, x1
	bl	_strdup
	mov	x22, x0
	mov	w8, #92
	mov	x9, x0
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	strb	w8, [x9]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9]
	cmp	w10, #47
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w10, LBB0_2
; %bb.5:
	mov	x0, x22
	bl	_path_to_file_dp
	mov	x19, x0
	mov	x0, x22
	bl	_free
	cbz	x19, LBB0_9
; %bb.6:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x21
	mov	x3, x19
	bl	_asprintf
	mov	w0, #8192
	bl	_malloc
	mov	x21, x0
	ldr	x0, [sp, #8]
	mov	x1, x21
	mov	w2, #8192
	bl	_efidp_parse_device_path
	cmp	x0, #2, lsl #12                 ; =8192
	b.hi	LBB0_10
; %bb.7:
	cbz	x0, LBB0_13
; %bb.8:
	mov	w22, #0
	str	x21, [x20]
	b	LBB0_12
LBB0_9:
	mov	x21, #0
LBB0_10:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	cbz	w22, LBB0_12
LBB0_11:
	mov	x0, x21
	bl	_free
LBB0_12:
	ldr	x0, [sp, #8]
	bl	_free
	mov	x0, x19
	bl	_free
	mov	x0, x22
	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
LBB0_13:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	cbnz	w22, LBB0_11
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_build_dp
.subsections_via_symbols
