	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eli_delkey_detached
_eli_delkey_detached:                   ## @eli_delkey_detached
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-40(%rbp), %rdx
	callq	_eli_metadata_read
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gctl_get_int
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	-40(%rbp), %rdi
	movl	$8, %esi
LBB0_13:
	callq	_arc4random_buf
	leaq	-40(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_eli_metadata_store
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_explicit_bzero
	jmp	LBB0_14
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gctl_get_int
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gctl_get_intmax
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.6:
	movq	_G_ELI_MAXMKEYS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jae	LBB0_7
## %bb.8:
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	-32(%rbp), %ecx
	movl	%ecx, %esi
	andl	%edx, %esi
	orl	%r15d, %esi
	je	LBB0_9
## %bb.10:
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, -32(%rbp)
	orl	%r15d, %ecx
	je	LBB0_11
## %bb.12:
	movq	_G_ELI_MKEYLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	imull	%esi, %eax
	addq	-40(%rbp), %rax
	movq	%rax, %rdi
	jmp	LBB0_13
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
LBB0_5:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_gctl_error
	jmp	LBB0_14
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_gctl_error
	jmp	LBB0_14
LBB0_9:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_gctl_error
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"all"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"Key number has to be specified."

	.comm	_G_ELI_MAXMKEYS,4,2             ## @G_ELI_MAXMKEYS
L_.str.4:                               ## @.str.4
	.asciz	"Invalid '%s' argument."

L_.str.5:                               ## @.str.5
	.asciz	"Master Key %u is not set."

L_.str.6:                               ## @.str.6
	.asciz	"This is the last Master Key. Use '-f' option if you really want to remove it."

	.comm	_G_ELI_MKEYLEN,4,2              ## @G_ELI_MKEYLEN
	.no_dead_strip	_eli_delkey_detached
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eli_delkey_detached
_eli_delkey_detached:                   ; @eli_delkey_detached
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	add	x2, sp, #16
	bl	_eli_metadata_read
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gctl_get_int
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x0, [sp, #16]
	mov	w1, #8
LBB0_3:
	bl	_arc4random_buf
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x20
	bl	_eli_metadata_store
	add	x0, sp, #16
	mov	w1, #16
	bl	_explicit_bzero
	b	LBB0_14
LBB0_4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gctl_get_int
	mov	x21, x0
Lloh4:
	adrp	x22, l_.str.2@PAGE
Lloh5:
	add	x22, x22, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_gctl_get_intmax
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.5:
Lloh6:
	adrp	x8, _G_ELI_MAXMKEYS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _G_ELI_MAXMKEYS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hs	LBB0_10
; %bb.6:
	ldr	w8, [sp, #24]
	mov	w9, #1
	lsl	w9, w9, w0
	and	w10, w8, w9
	orr	w10, w10, w21
	cbz	w10, LBB0_11
; %bb.7:
	bic	w8, w8, w9
	str	w8, [sp, #24]
	orr	w8, w8, w21
	cbz	w8, LBB0_12
; %bb.8:
	ldr	x8, [sp, #16]
Lloh9:
	adrp	x9, _G_ELI_MKEYLEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _G_ELI_MKEYLEN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mul	w9, w1, w0
	add	x0, x8, x9
	b	LBB0_3
LBB0_9:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_10:
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_11:
	str	x0, [sp]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_gctl_error
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"all"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"Key number has to be specified."

	.comm	_G_ELI_MAXMKEYS,4,2             ; @G_ELI_MAXMKEYS
l_.str.4:                               ; @.str.4
	.asciz	"Invalid '%s' argument."

l_.str.5:                               ; @.str.5
	.asciz	"Master Key %u is not set."

l_.str.6:                               ; @.str.6
	.asciz	"This is the last Master Key. Use '-f' option if you really want to remove it."

	.comm	_G_ELI_MKEYLEN,4,2              ; @G_ELI_MKEYLEN
	.no_dead_strip	_eli_delkey_detached
.subsections_via_symbols
