	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eli_setkey
_eli_setkey:                            ## @eli_setkey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_gctl_get_int
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gctl_get_ascii
	movq	%rax, %r14
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_eli_metadata_read
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	callq	_eli_is_attached
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_eli_setkey_attached
	jmp	LBB0_5
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gctl_error                     ## TAILCALL
LBB0_4:
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_eli_setkey_detached
LBB0_5:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	cmpb	$0, (%rax)
	jne	LBB0_8
LBB0_7:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nargs"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid number of arguments."

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

L_str:                                  ## @str
	.asciz	"Note, that the master key encrypted with old keys and/or passphrase may still exists in a metadata backup file."

	.no_dead_strip	_eli_setkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eli_setkey
_eli_setkey:                            ; @eli_setkey
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_gctl_get_int
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.1:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gctl_get_ascii
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_eli_metadata_read
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_eli_is_attached
	cbz	x0, LBB0_5
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_eli_setkey_attached
	ldr	x8, [x19]
	cbnz	x8, LBB0_6
	b	LBB0_7
LBB0_4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_gctl_error
LBB0_5:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_eli_setkey_detached
	ldr	x8, [x19]
	cbz	x8, LBB0_7
LBB0_6:
	ldrb	w8, [x8]
	cbnz	w8, LBB0_8
LBB0_7:
Lloh6:
	adrp	x0, l_str@PAGE
Lloh7:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nargs"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid number of arguments."

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

l_str:                                  ; @str
	.asciz	"Note, that the master key encrypted with old keys and/or passphrase may still exists in a metadata backup file."

	.no_dead_strip	_eli_setkey
.subsections_via_symbols
