	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_geli_add_key                   ## -- Begin function geli_add_key
	.p2align	4, 0x90
_geli_add_key:                          ## @geli_add_key
	.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
	movq	_nsaved_keys@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_GELI_MAX_KEYS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_2
## %bb.1:
	movl	%edi, %esi
	movq	_saved_keys@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edi
	movq	_G_ELI_USERKEYLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	incq	(%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nsaved_keys,8,3                ## @nsaved_keys
	.comm	_GELI_MAX_KEYS,8,3              ## @GELI_MAX_KEYS
	.comm	_saved_keys,8,3                 ## @saved_keys
	.comm	_G_ELI_USERKEYLEN,4,2           ## @G_ELI_USERKEYLEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_geli_add_key                   ; -- Begin function geli_add_key
	.p2align	2
_geli_add_key:                          ; @geli_add_key
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _nsaved_keys@GOTPAGE
Lloh1:
	ldr	x19, [x19, _nsaved_keys@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _GELI_MAX_KEYS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GELI_MAX_KEYS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_2
; %bb.1:
	mov	x1, x0
Lloh5:
	adrp	x9, _saved_keys@GOTPAGE
Lloh6:
	ldr	x9, [x9, _saved_keys@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w0, [x9, x8, lsl #2]
Lloh8:
	adrp	x8, _G_ELI_USERKEYLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _G_ELI_USERKEYLEN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_nsaved_keys,8,3                ; @nsaved_keys
	.comm	_GELI_MAX_KEYS,8,3              ; @GELI_MAX_KEYS
	.comm	_saved_keys,8,3                 ; @saved_keys
	.comm	_G_ELI_USERKEYLEN,4,2           ; @G_ELI_USERKEYLEN
.subsections_via_symbols
