	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eli_genkey
_eli_genkey:                            ## @eli_genkey
	.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
	movl	%ecx, %r15d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	testl	%ecx, %ecx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	callq	_gctl_get_int
	movl	%eax, %r14d
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_g_eli_crypto_hmac_init
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_eli_genkey_files
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gctl_error
	jmp	LBB0_6
LBB0_4:
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_eli_genkey_passphrase
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.5:
	leaq	-48(%rbp), %rdi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_g_eli_crypto_hmac_final
	jmp	LBB0_7
LBB0_6:
	xorl	%r13d, %r13d
LBB0_7:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nonewpassphrase"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"No key components given."

	.no_dead_strip	_eli_genkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eli_genkey
_eli_genkey:                            ; @eli_genkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w3, #0
	csel	x1, x9, x8, eq
	bl	_gctl_get_int
	mov	x23, x0
	add	x0, sp, #8
	mov	x1, #0
	mov	w2, #0
	bl	_g_eli_crypto_hmac_init
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x4, #0
	mov	w5, #0
	bl	_eli_genkey_files
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.1:
	cbnz	w0, LBB0_4
; %bb.2:
	cbz	w23, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_gctl_error
	b	LBB0_6
LBB0_4:
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_eli_genkey_passphrase
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #0
	bl	_g_eli_crypto_hmac_final
	b	LBB0_7
LBB0_6:
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nonewpassphrase"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"No key components given."

	.no_dead_strip	_eli_genkey
.subsections_via_symbols
