	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addfield
_addfield:                              ## @addfield
	.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	%r8, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	(%r13), %rdi
	movl	$0, %r12d
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_strlen
	movl	%eax, %r12d
LBB0_2:
	addl	%r14d, %ebx
	incl	%ebx
	testq	%r15, %r15
	movl	$0, %r14d
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_json_len
	movl	%eax, %r14d
LBB0_4:
	movq	(%r13), %rdi
	addl	%r12d, %ebx
	addl	%r14d, %ebx
	movl	%ebx, %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, (%r13)
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.7:
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcat
	jmp	LBB0_8
LBB0_6:
	movb	$0, (%rax)
LBB0_8:
	movq	(%r13), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcat
	testq	%r15, %r15
	je	LBB0_9
## %bb.10:
	movq	(%r13), %rdi
	movslq	(%r15), %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
	movl	%r14d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strncat                        ## TAILCALL
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_addfield
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addfield
_addfield:                              ; @addfield
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x3
	bl	_strlen
	mov	x24, x0
	mov	x0, x23
	bl	_strlen
	add	w24, w24, w0
	ldr	x0, [x21]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_strlen
	mov	x25, x0
	add	w26, w24, #1
	cbz	x19, LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_json_len
	mov	x24, x0
	b	LBB0_5
LBB0_3:
	mov	w25, #0
	add	w26, w24, #1
	cbnz	x19, LBB0_2
LBB0_4:
	mov	w24, #0
LBB0_5:
	ldr	x0, [x21]
	add	w8, w26, w25
	add	w1, w8, w24
	bl	_realloc
	cbz	x0, LBB0_11
; %bb.6:
	str	x0, [x21]
	cbz	w25, LBB0_8
; %bb.7:
	mov	x1, x23
	bl	_strcat
	b	LBB0_9
LBB0_8:
	strb	wzr, [x0]
LBB0_9:
	ldr	x0, [x21]
	mov	x1, x22
	bl	_strcat
	cbz	x19, LBB0_11
; %bb.10:
	ldr	x0, [x21]
	ldrsw	x8, [x19]
	add	x1, x20, x8
	mov	x2, x24
	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
	b	_strncat
LBB0_11:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_addfield
.subsections_via_symbols
