	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function json_array_add
_json_array_add:                        ## @json_array_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	cmpl	%edi, (%rbx)
	jl	LBB0_2
## %bb.1:
	addl	%edi, %edi
	movq	_STARTING_CAPACITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MAX
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_json_array_resize
	movq	_JSONFailure@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_json_array_get_wrapping_value
	movl	%eax, (%r14)
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movq	%r14, (%rax,%rcx,8)
	leal	1(%rcx), %eax
	movl	%eax, (%rbx)
	movq	_JSONSuccess@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STARTING_CAPACITY,4,2          ## @STARTING_CAPACITY
	.comm	_JSONFailure,8,3                ## @JSONFailure
	.comm	_JSONSuccess,8,3                ## @JSONSuccess
	.no_dead_strip	_json_array_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function json_array_add
_json_array_add:                        ; @json_array_add
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldp	w9, w8, [x0]
	cmp	w9, w8
	b.lt	LBB0_2
; %bb.1:
	lsl	w0, w8, #1
Lloh0:
	adrp	x8, _STARTING_CAPACITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STARTING_CAPACITY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_json_array_resize
Lloh3:
	adrp	x8, _JSONFailure@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JSONFailure@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_json_array_get_wrapping_value
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	str	x20, [x8, x9, lsl #3]
	str	w0, [x20]
	add	w8, w9, #1
	str	w8, [x19]
Lloh6:
	adrp	x8, _JSONSuccess@GOTPAGE
Lloh7:
	ldr	x8, [x8, _JSONSuccess@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STARTING_CAPACITY,4,2          ; @STARTING_CAPACITY
	.comm	_JSONFailure,8,3                ; @JSONFailure
	.comm	_JSONSuccess,8,3                ; @JSONSuccess
	.no_dead_strip	_json_array_add
.subsections_via_symbols
