	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delete_bootvar
_delete_bootvar:                        ## @delete_bootvar
	.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
	movl	%edi, %ebx
	cmpl	$65536, %edi                    ## imm = 0x10000
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	callq	_errx
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	leaq	-16(%rbp), %rdi
	movl	%ebx, %ecx
	callq	_asprintf
	movq	-16(%rbp), %rsi
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
	movq	-16(%rbp), %rsi
LBB0_4:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_EFI_GLOBAL_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-16(%rbp), %rsi
	callq	_efi_del_variable
	testq	%rax, %rax
	js	LBB0_6
## %bb.5:
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	%ebx, %edi
	callq	_remove_from_order
	movq	-16(%rbp), %rdi
	callq	_free
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	-16(%rbp), %rsi
	leaq	L_.str.5(%rip), %rdi
	callq	_warn
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	%ebx, %edi
	callq	_remove_from_order
	movq	-16(%rbp), %rdi
	callq	_free
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad boot variable %#x"

L_.str.1:                               ## @.str.1
	.asciz	"%s%04X"

L_.str.2:                               ## @.str.2
	.asciz	"Boot"

L_.str.3:                               ## @.str.3
	.asciz	"asprintf"

L_.str.4:                               ## @.str.4
	.asciz	"Removing boot variable '%s'\n"

	.comm	_EFI_GLOBAL_GUID,4,2            ## @EFI_GLOBAL_GUID
L_.str.5:                               ## @.str.5
	.asciz	"cannot delete variable %s"

L_.str.6:                               ## @.str.6
	.asciz	"Removing 0x%x from BootOrder\n"

	.no_dead_strip	_delete_bootvar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delete_bootvar
_delete_bootvar:                        ; @delete_bootvar
	.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	x19, x0
	cmp	w0, #16, lsl #12                ; =65536
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	x3, x19
	bl	_asprintf
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x8, [sp, #8]
LBB0_4:
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
Lloh10:
	adrp	x8, _EFI_GLOBAL_GUID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFI_GLOBAL_GUID@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x1, [sp, #8]
	bl	_efi_del_variable
	tbnz	x0, #63, LBB0_6
; %bb.5:
	mov	x8, x19
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.6@PAGE
Lloh14:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_remove_from_order
	ldr	x0, [sp, #8]
	bl	_free
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	ldr	x1, [sp, #8]
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_warn
	str	x19, [sp]
Lloh17:
	adrp	x0, l_.str.6@PAGE
Lloh18:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_remove_from_order
	ldr	x0, [sp, #8]
	bl	_free
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad boot variable %#x"

l_.str.1:                               ; @.str.1
	.asciz	"%s%04X"

l_.str.2:                               ; @.str.2
	.asciz	"Boot"

l_.str.3:                               ; @.str.3
	.asciz	"asprintf"

l_.str.4:                               ; @.str.4
	.asciz	"Removing boot variable '%s'\n"

	.comm	_EFI_GLOBAL_GUID,4,2            ; @EFI_GLOBAL_GUID
l_.str.5:                               ; @.str.5
	.asciz	"cannot delete variable %s"

l_.str.6:                               ; @.str.6
	.asciz	"Removing 0x%x from BootOrder\n"

	.no_dead_strip	_delete_bootvar
.subsections_via_symbols
