	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_set_variable               ## -- Begin function efi_set_variable
	.p2align	4, 0x90
_efi_set_variable:                      ## @efi_set_variable
	.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
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movl	%edi, %r13d
	xorl	%eax, %eax
	callq	_efi_open_dev
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	leaq	-72(%rbp), %rdi
	callq	_efi_var_reset
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_utf8_to_ucs2
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	%r13d, -48(%rbp)
	movq	%r12, -56(%rbp)
	movq	%r15, -72(%rbp)
	movl	%r14d, -60(%rbp)
	movq	_efi_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EFIIOC_VAR_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	callq	_ioctl
	movl	%eax, %ebx
LBB0_4:
	movl	-64(%rbp), %edi
	callq	_free
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_efi_fd,4,2                     ## @efi_fd
	.comm	_EFIIOC_VAR_SET,4,2             ## @EFIIOC_VAR_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_set_variable               ; -- Begin function efi_set_variable
	.p2align	2
_efi_set_variable:                      ; @efi_set_variable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_efi_open_dev
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x24, sp
	mov	x0, sp
	bl	_efi_var_reset
	add	x1, x24, #8
	add	x2, x24, #28
	mov	x0, x23
	bl	_utf8_to_ucs2
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.2:
	str	w22, [sp, #24]
	str	x21, [sp, #16]
	str	x20, [sp]
	str	w19, [sp, #12]
Lloh0:
	adrp	x8, _efi_fd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _efi_fd@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EFIIOC_VAR_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFIIOC_VAR_SET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	mov	x23, x0
LBB0_3:
	ldr	w0, [sp, #8]
	bl	_free
	b	LBB0_5
LBB0_4:
	mov	w23, #-1
LBB0_5:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_efi_fd,4,2                     ; @efi_fd
	.comm	_EFIIOC_VAR_SET,4,2             ; @EFIIOC_VAR_SET
.subsections_via_symbols
