	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efivar_device_path_to_unix_path ## -- Begin function efivar_device_path_to_unix_path
	.p2align	4, 0x90
_efivar_device_path_to_unix_path:       ## @efivar_device_path_to_unix_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.2:
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.3:
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.4:
	movq	%rdi, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	$0, (%rsi)
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	$0, (%rdx)
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	$0, (%rcx)
	movq	_MEDIA_DEVICE_PATH@GOTPCREL(%rip), %r14
	movq	_END_DEVICE_PATH_TYPE@GOTPCREL(%rip), %r15
	movq	_MAX_DP_SANITY@GOTPCREL(%rip), %r12
	movq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_DevicePathType
	cmpq	(%r14), %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_DevicePathType
	cmpq	(%r15), %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_NextDevicePathNode
	movq	%rax, %rbx
	subq	%r13, %rax
	cmpq	(%r12), %rax
	jbe	LBB0_5
	jmp	LBB0_12
LBB0_8:
	movq	_EDOOFUS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movq	%rbx, %rdi
	callq	_DevicePathType
	cmpq	(%r14), %rax
	jne	LBB0_12
## %bb.10:
	leaq	-48(%rbp), %rdi
	callq	_geom_gettree
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_DevicePathSubType
	movq	_MEDIA_HARDDRIVE_DP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_efi_hd_to_unix
	movl	%eax, %r13d
LBB0_17:
	leaq	-48(%rbp), %rdi
	callq	_geom_deletetree
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EDOOFUS,4,2                    ## @EDOOFUS
	.comm	_MEDIA_DEVICE_PATH,8,3          ## @MEDIA_DEVICE_PATH
	.comm	_END_DEVICE_PATH_TYPE,8,3       ## @END_DEVICE_PATH_TYPE
	.comm	_MAX_DP_SANITY,8,3              ## @MAX_DP_SANITY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MEDIA_HARDDRIVE_DP,8,3         ## @MEDIA_HARDDRIVE_DP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efivar_device_path_to_unix_path ; -- Begin function efivar_device_path_to_unix_path
	.p2align	2
_efivar_device_path_to_unix_path:       ; @efivar_device_path_to_unix_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_8
; %bb.2:
	mov	x20, x2
	cbz	x2, LBB0_8
; %bb.3:
	mov	x19, x3
	cbz	x3, LBB0_8
; %bb.4:
	mov	x23, x0
	str	xzr, [x21]
	str	xzr, [x20]
Lloh0:
	adrp	x24, _MEDIA_DEVICE_PATH@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MEDIA_DEVICE_PATH@GOTPAGEOFF]
	str	xzr, [x19]
Lloh2:
	adrp	x25, _END_DEVICE_PATH_TYPE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _END_DEVICE_PATH_TYPE@GOTPAGEOFF]
	mov	x22, x0
Lloh4:
	adrp	x26, _MAX_DP_SANITY@GOTPAGE
Lloh5:
	ldr	x26, [x26, _MAX_DP_SANITY@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_DevicePathType
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_DevicePathType
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_NextDevicePathNode
	mov	x22, x0
	ldr	x8, [x26]
	sub	x9, x0, x23
	cmp	x9, x8
	b.ls	LBB0_5
	b	LBB0_12
LBB0_8:
Lloh6:
	adrp	x8, _EDOOFUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EDOOFUS@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	mov	x0, x22
	bl	_DevicePathType
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.10:
	add	x0, sp, #8
	bl	_geom_gettree
	cbz	x0, LBB0_15
; %bb.11:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w23, [x8]
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_DevicePathSubType
Lloh15:
	adrp	x8, _MEDIA_HARDDRIVE_DP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MEDIA_HARDDRIVE_DP@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.16:
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_efi_hd_to_unix
	mov	x23, x0
LBB0_17:
	add	x0, sp, #8
	bl	_geom_deletetree
	b	LBB0_14
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EDOOFUS,4,2                    ; @EDOOFUS
	.comm	_MEDIA_DEVICE_PATH,8,3          ; @MEDIA_DEVICE_PATH
	.comm	_END_DEVICE_PATH_TYPE,8,3       ; @END_DEVICE_PATH_TYPE
	.comm	_MAX_DP_SANITY,8,3              ; @MAX_DP_SANITY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MEDIA_HARDDRIVE_DP,8,3         ; @MEDIA_HARDDRIVE_DP
.subsections_via_symbols
