	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keys_save                      ## -- Begin function keys_save
	.p2align	4, 0x90
_keys_save:                             ## @keys_save
	.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
	movq	_KEYS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	movq	%rdi, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_strlen
	movq	%rax, %r12
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_strlen
	addq	%r12, %rbx
	addq	%rax, %rbx
	addq	$2, %rbx
	incq	%r14
	cmpq	%r14, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
LBB0_4:
	testq	%rbx, %rbx
	movq	_KEYS_MAX@GOTPCREL(%rip), %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_11
## %bb.5:
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
	movl	(%r13), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_7:
	movq	%r12, (%r14)
	movq	%rbx, 8(%r14)
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_11
## %bb.8:
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rcx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_sprintf
	cltq
	addq	%rax, %r12
	incq	%r12
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEYS_MAX,4,2                   ## @KEYS_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

L_.str.1:                               ## @.str.1
	.asciz	"%s=%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keys_save                      ; -- Begin function keys_save
	.p2align	2
_keys_save:                             ; @keys_save
	.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
Lloh0:
	adrp	x23, _KEYS_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _KEYS_MAX@GOTPAGEOFF]
	ldr	w24, [x23]
	cmp	w24, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x25, #0
	mov	x21, #0
	ldr	x26, [x0]
	lsl	x27, x24, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x26, x25]
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_strlen
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x25]
	bl	_strlen
	add	x8, x21, x22
	add	x8, x8, x0
	add	x21, x8, #2
	add	x25, x25, #8
	cmp	x27, x25
	b.ne	LBB0_2
LBB0_4:
	cbz	x21, LBB0_11
; %bb.5:
	mov	x0, x21
	bl	_malloc
	mov	x22, x0
	cbnz	x0, LBB0_7
; %bb.6:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_log_err
	ldr	w24, [x23]
LBB0_7:
	stp	x22, x21, [x20]
	cmp	w24, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x21, #0
Lloh4:
	adrp	x20, l_.str.1@PAGE
Lloh5:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x2, [x8, x21, lsl #3]
	cbz	x2, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #8]
	ldr	x3, [x8, x21, lsl #3]
	mov	x0, x22
	mov	x1, x20
	bl	_sprintf
	add	x8, x22, w0, sxtw
	add	x22, x8, #1
	add	x21, x21, #1
	ldrsw	x8, [x23]
	cmp	x21, x8
	b.lt	LBB0_9
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_KEYS_MAX,4,2                   ; @KEYS_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

l_.str.1:                               ; @.str.1
	.asciz	"%s=%s"

.subsections_via_symbols
