	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_geli_import_key_buffer         ## -- Begin function geli_import_key_buffer
	.p2align	4, 0x90
_geli_import_key_buffer:                ## @geli_import_key_buffer
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	_GELI_MAX_KEYS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_5
## %bb.2:
	movq	8(%r12), %rcx
	movl	$1, %ebx
	movq	_saved_keys@GOTPCREL(%rip), %r15
	movq	_G_ELI_USERKEYLEN@GOTPCREL(%rip), %r13
	movq	_KEYBUF_TYPE_NONE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	-4(%rax,%rbx,4), %edi
	movl	-4(%rcx,%rbx,8), %esi
	movl	(%r13), %edx
	callq	_memcpy
	movq	8(%r12), %rax
	movl	-4(%rax,%rbx,8), %edi
	movl	(%r13), %esi
	callq	_explicit_bzero
	movl	(%r14), %eax
	movq	8(%r12), %rcx
	movl	%eax, -8(%rcx,%rbx,8)
	movl	(%r12), %eax
	cmpq	%rax, %rbx
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rbx), %rdx
	movq	_GELI_MAX_KEYS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpq	%rsi, %rbx
	movq	%rdx, %rbx
	jb	LBB0_3
LBB0_5:
	movq	_nsaved_keys@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$0, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GELI_MAX_KEYS,4,2              ## @GELI_MAX_KEYS
	.comm	_saved_keys,8,3                 ## @saved_keys
	.comm	_G_ELI_USERKEYLEN,4,2           ## @G_ELI_USERKEYLEN
	.comm	_KEYBUF_TYPE_NONE,4,2           ## @KEYBUF_TYPE_NONE
	.comm	_nsaved_keys,4,2                ## @nsaved_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_geli_import_key_buffer         ; -- Begin function geli_import_key_buffer
	.p2align	2
_geli_import_key_buffer:                ; @geli_import_key_buffer
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w9, [x0]
Lloh0:
	adrp	x20, _GELI_MAX_KEYS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GELI_MAX_KEYS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w9, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_4
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x23, _saved_keys@GOTPAGE
Lloh3:
	ldr	x23, [x23, _saved_keys@GOTPAGEOFF]
Lloh4:
	adrp	x24, _G_ELI_USERKEYLEN@GOTPAGE
Lloh5:
	ldr	x24, [x24, _G_ELI_USERKEYLEN@GOTPAGEOFF]
Lloh6:
	adrp	x25, _KEYBUF_TYPE_NONE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _KEYBUF_TYPE_NONE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	ldr	w0, [x9, x22, lsl #2]
	add	x8, x8, x21
	ldr	w1, [x8, #4]
	ldr	w2, [x24]
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	ldr	w0, [x8, #4]
	ldr	w1, [x24]
	bl	_explicit_bzero
	ldr	w9, [x25]
	ldr	x8, [x19, #8]
	str	w9, [x8, x21]
	add	x22, x22, #1
	ldr	w9, [x19]
	cmp	x22, x9
	b.hs	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w10, [x20]
	add	x21, x21, #8
	cmp	x22, x10
	b.lo	LBB0_2
LBB0_4:
Lloh8:
	adrp	x8, _nsaved_keys@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nsaved_keys@GOTPAGEOFF]
Lloh10:
	str	w9, [x8]
	str	wzr, [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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GELI_MAX_KEYS,4,2              ; @GELI_MAX_KEYS
	.comm	_saved_keys,8,3                 ; @saved_keys
	.comm	_G_ELI_USERKEYLEN,4,2           ; @G_ELI_USERKEYLEN
	.comm	_KEYBUF_TYPE_NONE,4,2           ; @KEYBUF_TYPE_NONE
	.comm	_nsaved_keys,4,2                ; @nsaved_keys
.subsections_via_symbols
