	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_keyvalue
_parse_keyvalue:                        ## @parse_keyvalue
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_line_builder@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_SB_contents
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_SB_length
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rax, %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx,%r13), %edi
	callq	_is_name_char
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_2
## %bb.4:
	movq	%r14, %r13
LBB0_5:
	testq	%r13, %r13
	je	LBB0_19
## %bb.6:
	leaq	1(%r13), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_xmalloc
	movq	%r15, %r12
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_memcpy
	movb	$0, (%r15,%r13)
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_HT_get
	testq	%rax, %rax
	je	LBB0_7
## %bb.12:
	movq	%r15, %rdi
	jmp	LBB0_13
LBB0_7:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	cmpq	%r14, %r13
	jae	LBB0_11
## %bb.8:
	movq	%r14, %rax
	subq	%r13, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-1(%rax), %r12
	leaq	(%rbx,%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movsbl	(%rax,%r15), %edi
	callq	_is_ws
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	cmpq	%r15, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_9
	jmp	LBB0_11
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpb	$61, (%r15,%rax)
	jne	LBB0_11
## %bb.15:
	subq	%r15, %r12
	leaq	(%rbx,%r13), %rax
	incq	%rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r13
	movq	%r15, %rbx
	leaq	(%rcx,%r15), %rax
	cmpq	%rax, %r14
	jbe	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movsbl	(%rax,%rbx), %edi
	callq	_is_ws
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	-1(%r13), %r12
	leaq	1(%rbx), %r15
	testq	%rax, %rax
	jne	LBB0_16
LBB0_18:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	subq	%rbx, %rdi
	leaq	-1(%rdi), %r14
	callq	_xmalloc
	movq	%rax, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %rsi
	incq	%rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_memcpy
	movb	$0, (%r15,%r13)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_HT_put
	movq	%rbx, %rdi
	callq	_xfree
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_13:
	callq	_xfree
	movl	$-1, %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_line_builder,4,2               ## @line_builder
	.no_dead_strip	_parse_keyvalue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_keyvalue
_parse_keyvalue:                        ; @parse_keyvalue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _line_builder@GOTPAGE
Lloh1:
	ldr	x21, [x21, _line_builder@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_SB_contents
	mov	x20, x0
	ldr	w0, [x21]
	bl	_SB_length
	cbz	x0, LBB0_17
; %bb.1:
	mov	x22, x0
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20, x21]
	bl	_is_name_char
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	cmp	x22, x21
	b.ne	LBB0_2
; %bb.4:
	mov	x21, x22
LBB0_5:
	cbz	x21, LBB0_17
; %bb.6:
	add	x0, x21, #1
	bl	_xmalloc
	mov	x23, x0
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	strb	wzr, [x23, x21]
	mov	x0, x19
	mov	x1, x23
	bl	_HT_get
	cbnz	x0, LBB0_16
; %bb.7:
	cmp	x21, x22
	b.hs	LBB0_16
; %bb.8:
	mov	x25, #0
	add	x26, x20, x21
	sub	x24, x22, x21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x26, x25]
	bl	_is_ws
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	cmp	x24, x25
	b.ne	LBB0_9
	b	LBB0_16
LBB0_11:
	add	x8, x20, x21
	ldrb	w8, [x8, x25]
	cmp	w8, #61
	b.ne	LBB0_16
; %bb.12:
	mvn	x8, x25
	add	x8, x8, x24
	add	x28, x21, #1
	add	x9, x20, x28
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x26, x8
	mov	x27, x25
	add	x8, x28, x25
	cmp	x22, x8
	b.ls	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldrsb	w0, [x8, x27]
	bl	_is_ws
	sub	x8, x26, #1
	add	x25, x27, #1
	cbnz	x0, LBB0_13
LBB0_15:
	sub	x0, x24, x27
	sub	x22, x0, #1
	bl	_xmalloc
	mov	x24, x0
	add	x8, x21, x20
	add	x8, x8, x27
	add	x1, x8, #1
	mov	x2, x22
	bl	_memcpy
	strb	wzr, [x24, x26]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_HT_put
	mov	x0, x23
	bl	_xfree
	mov	w0, #0
	b	LBB0_18
LBB0_16:
	mov	x0, x23
	bl	_xfree
LBB0_17:
	mov	w0, #-1
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_line_builder,4,2               ; @line_builder
	.no_dead_strip	_parse_keyvalue
.subsections_via_symbols
