	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_from_order
_remove_from_order:                     ## @remove_from_order
	.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	%rdi, %r15
	movq	_EFI_GLOBAL_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-60(%rbp), %r8
	callq	_efi_get_variable
	testq	%rax, %rax
	js	LBB0_13
## %bb.1:
	movq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %r13
	addq	$32, %rbx
	cmpq	-48(%rbp), %r13
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi
	addq	%rbx, %rdi
	callq	_le16dec
	cmpq	%r15, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r14,%r12,4), %rdi
	movq	-56(%rbp), %rsi
	addq	%rbx, %rsi
	movl	$8, %edx
	callq	_memcpy
	addq	$8, %r12
	jmp	LBB0_7
LBB0_8:
	cmpq	%r12, %r13
	jne	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_warnx
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_set_bootvar
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_12:
	movq	%r14, %rdi
	callq	_free
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFI_GLOBAL_GUID,4,2            ## @EFI_GLOBAL_GUID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BootOrder"

L_.str.1:                               ## @.str.1
	.asciz	"malloc"

L_.str.2:                               ## @.str.2
	.asciz	"Boot variable %04x not in BootOrder"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to update BootOrder with new value"

	.no_dead_strip	_remove_from_order
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_from_order
_remove_from_order:                     ; @remove_from_order
	.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	x20, x0
Lloh0:
	adrp	x8, _EFI_GLOBAL_GUID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFI_GLOBAL_GUID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	add	x3, sp, #16
	add	x4, sp, #28
	bl	_efi_get_variable
	tbnz	x0, #63, LBB0_13
; %bb.1:
	ldr	x21, [sp, #16]
	mov	x0, x21
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.2:
	cbnz	x21, LBB0_4
	b	LBB0_9
LBB0_3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x21, [sp, #16]
	cbz	x21, LBB0_9
LBB0_4:
	mov	x23, #0
	mov	x22, #0
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #8
	ldr	x8, [sp, #16]
	add	x23, x23, #32
	cmp	x22, x8
	b.hs	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	add	x0, x8, x23
	bl	_le16dec
	cmp	x0, x20
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x19, x21, lsl #2
	ldr	x8, [sp, #8]
	add	x1, x8, x23
	mov	w2, #8
	bl	_memcpy
	add	x21, x21, #8
	b	LBB0_5
LBB0_8:
	cmp	x22, x21
	b.ne	LBB0_10
LBB0_9:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_warnx
	b	LBB0_12
LBB0_10:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_set_bootvar
	tbz	x0, #63, LBB0_12
; %bb.11:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_12:
	mov	x0, x19
	bl	_free
LBB0_13:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EFI_GLOBAL_GUID,4,2            ; @EFI_GLOBAL_GUID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BootOrder"

l_.str.1:                               ; @.str.1
	.asciz	"malloc"

l_.str.2:                               ; @.str.2
	.asciz	"Boot variable %04x not in BootOrder"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to update BootOrder with new value"

	.no_dead_strip	_remove_from_order
.subsections_via_symbols
