	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_translate_devpath
_efi_translate_devpath:                 ## @efi_translate_devpath
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_NextDevicePathNode
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_IsDevicePathEnd
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_2:
	movq	%r14, %rdi
	callq	_efi_translate_devpath
	movq	%rax, %r14
	movq	$0, -24(%rbp)
	movq	%rbx, %rdi
	callq	_DevicePathType
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	ja	LBB0_7
## %bb.3:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_efi_messaging_dev_path
	jmp	LBB0_10
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_efi_media_dev_path
	jmp	LBB0_10
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_efi_hw_dev_path
	jmp	LBB0_10
LBB0_7:
	testq	%r14, %r14
	leaq	L_.str.1(%rip), %rcx
	cmovneq	%r14, %rcx
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rdi
	movl	%eax, %edx
	callq	_asprintf
	testl	%eax, %eax
	js	LBB0_13
## %bb.8:
	movq	-24(%rbp), %rax
	jmp	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_efi_acpi_dev_path
LBB0_10:
	movq	%rax, -24(%rbp)
LBB0_11:
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_free
	movq	-24(%rbp), %r14
LBB0_13:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UnknownPath(%x)%s"

L_.str.1:                               ## @.str.1
	.space	1

	.no_dead_strip	_efi_translate_devpath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_translate_devpath
_efi_translate_devpath:                 ; @efi_translate_devpath
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_NextDevicePathNode
	mov	x19, x0
	mov	x0, x20
	bl	_IsDevicePathEnd
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, #0
	b	LBB0_13
LBB0_2:
	mov	x0, x19
	bl	_efi_translate_devpath
	mov	x19, x0
	str	xzr, [sp, #8]
	mov	x0, x20
	bl	_DevicePathType
	mov	x2, x0
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_efi_messaging_dev_path
	b	LBB0_10
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_efi_media_dev_path
	b	LBB0_10
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_efi_hw_dev_path
	b	LBB0_10
LBB0_7:
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x19, #0
	csel	x3, x8, x19, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_asprintf
	tbnz	w0, #31, LBB0_13
; %bb.8:
	ldr	x0, [sp, #8]
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_efi_acpi_dev_path
LBB0_10:
	str	x0, [sp, #8]
LBB0_11:
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_free
	ldr	x19, [sp, #8]
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UnknownPath(%x)%s"

l_.str.1:                               ; @.str.1
	.space	1

	.no_dead_strip	_efi_translate_devpath
.subsections_via_symbols
