	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keys_load                      ## -- Begin function keys_load
	.p2align	4, 0x90
_keys_load:                             ## @keys_load
	.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
	movslq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rcx
	cmpb	$0, -1(%rax,%rcx)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_log_errx
LBB0_3:
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	callq	_assert
	movl	(%rbx), %edi
	movl	%edi, 8(%r14)
	callq	_malloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
	movq	(%r14), %rax
LBB0_5:
	movq	8(%rbx), %rsi
	movl	8(%r14), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	(%r14), %rbx
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_KEYS_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_log_errx
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r12
	movq	16(%r14), %rax
	movq	%rbx, (%rax,%r15)
	movq	16(%r14), %rdi
	addq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strsep
	movq	24(%r14), %rcx
	movq	%rax, (%rcx,%r15)
	movq	24(%r14), %rax
	movq	(%rax,%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%r15), %rdx
	testq	%rdx, %rdx
	jne	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_log_errx
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movq	(%rcx,%r15), %rsi
	movq	(%rax,%r15), %rdx
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.5(%rip), %rdi
	callq	_log_debugx
	addq	%r12, %rbx
	incq	%rbx
	movslq	8(%r14), %rax
	addq	(%r14), %rax
	cmpq	%rax, %rbx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	setb	%al
	movzbl	%al, %edi
	callq	_assert
	incq	%r13
	addq	$8, %r15
	jmp	LBB0_6
LBB0_13:
	addq	$8, %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	"protocol error: key not NULL-terminated\n"

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

	.comm	_KEYS_MAX,4,2                   ## @KEYS_MAX
L_.str.2:                               ## @.str.2
	.asciz	"too many keys received"

L_.str.3:                               ## @.str.3
	.asciz	"="

L_.str.4:                               ## @.str.4
	.asciz	"malformed keys"

L_.str.5:                               ## @.str.5
	.asciz	"key received: \"%s=%s\""

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keys_load                      ; -- Begin function keys_load
	.p2align	2
_keys_load:                             ; @keys_load
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldrsw	x8, [x1]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x9, [x1, #8]
	add	x8, x8, x9
	ldurb	w8, [x8, #-1]
	cbz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_log_errx
LBB0_3:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x20]
	str	w0, [x19, #8]
	bl	_malloc
	str	x0, [x19]
	cbnz	x0, LBB0_5
; %bb.4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_log_err
	ldr	x0, [x19]
LBB0_5:
	ldr	x1, [x20, #8]
	ldr	w2, [x19, #8]
	bl	_memcpy
	mov	x26, #0
	mov	x27, #0
Lloh4:
	adrp	x28, _KEYS_MAX@GOTPAGE
Lloh5:
	ldr	x28, [x28, _KEYS_MAX@GOTPAGEOFF]
	ldr	x21, [x19]
Lloh6:
	adrp	x20, l_.str.3@PAGE
Lloh7:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh8:
	adrp	x22, l_.str.4@PAGE
Lloh9:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh10:
	adrp	x23, l_.str.5@PAGE
Lloh11:
	add	x23, x23, l_.str.5@PAGEOFF
Lloh12:
	adrp	x24, l_.str.2@PAGE
Lloh13:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x28]
	cmp	x27, x8
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	mov	x1, x24
	bl	_log_errx
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_strlen
	mov	x25, x0
	ldr	x8, [x19, #16]
	str	x21, [x8, x26]
	ldr	x8, [x19, #16]
	add	x0, x8, x26
	mov	x1, x20
	bl	_strsep
	ldr	x8, [x19, #24]
	str	x0, [x8, x26]
	ldr	x8, [x19, #24]
	ldr	x1, [x8, x26]
	cbz	x1, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #16]
	ldr	x2, [x8, x26]
	cbnz	x2, LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	mov	x1, x22
	bl	_log_errx
	ldp	x9, x8, [x19, #16]
	ldr	x1, [x8, x26]
	ldr	x2, [x9, x26]
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_log_debugx
	add	x8, x25, x21
	add	x21, x8, #1
	ldr	x8, [x19]
	ldrsw	x9, [x19, #8]
	add	x8, x8, x9
	cmp	x21, x8
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	cset	w0, lo
	bl	_assert
	add	x27, x27, #1
	add	x26, x26, #8
	b	LBB0_6
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"protocol error: key not NULL-terminated\n"

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

	.comm	_KEYS_MAX,4,2                   ; @KEYS_MAX
l_.str.2:                               ; @.str.2
	.asciz	"too many keys received"

l_.str.3:                               ; @.str.3
	.asciz	"="

l_.str.4:                               ; @.str.4
	.asciz	"malformed keys"

l_.str.5:                               ; @.str.5
	.asciz	"key received: \"%s=%s\""

.subsections_via_symbols
