	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_open_dev
_efi_open_dev:                          ## @efi_open_dev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_efi_fd@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	cmpl	$-2, %eax
	jne	LBB0_2
## %bb.1:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	movl	%eax, (%rbx)
LBB0_2:
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	callq	_efi_guid_tbl_compile
	movl	(%rbx), %eax
	jmp	LBB0_5
LBB0_3:
	movl	$-1, (%rbx)
	movl	$-1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_efi_fd,4,2                     ## @efi_fd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/efi"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.no_dead_strip	_efi_open_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_open_dev
_efi_open_dev:                          ; @efi_open_dev
	.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
Lloh0:
	adrp	x19, _efi_fd@GOTPAGE
Lloh1:
	ldr	x19, [x19, _efi_fd@GOTPAGEOFF]
	ldr	w0, [x19]
	cmn	w0, #2
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	str	w0, [x19]
LBB0_2:
	tbnz	w0, #31, LBB0_4
; %bb.3:
	bl	_efi_guid_tbl_compile
	ldr	w0, [x19]
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
	str	w0, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_efi_fd,4,2                     ; @efi_fd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/efi"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.no_dead_strip	_efi_open_dev
.subsections_via_symbols
