	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function json_object_add
_json_object_add:                       ## @json_object_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	movq	%rdi, %rbx
	movq	%r15, %rsi
	callq	_json_object_get_value
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	movq	_JSONFailure@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%rbx), %eax
	movl	4(%rbx), %edi
	cmpl	%edi, %eax
	jl	LBB0_8
## %bb.6:
	addl	%edi, %edi
	movq	_STARTING_CAPACITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MAX
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_json_object_resize
	movq	_JSONFailure@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.7:
	movl	(%rbx), %eax
LBB0_8:
	movslq	%eax, %r12
	movq	%r15, %rdi
	callq	_parson_strdup
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	16(%rbx), %rax
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_3
## %bb.9:
	movq	%rbx, %rdi
	callq	_json_object_get_wrapping_value
	movl	%eax, (%r14)
	movq	8(%rbx), %rax
	movq	%r14, (%rax,%r12,8)
	incl	(%rbx)
	movq	_JSONSuccess@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_JSONFailure,8,3                ## @JSONFailure
	.comm	_STARTING_CAPACITY,4,2          ## @STARTING_CAPACITY
	.comm	_JSONSuccess,8,3                ## @JSONSuccess
	.no_dead_strip	_json_object_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function json_object_add
_json_object_add:                       ; @json_object_add
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_4
; %bb.2:
	mov	x20, x2
	cbz	x2, LBB0_4
; %bb.3:
	mov	x19, x0
	mov	x1, x21
	bl	_json_object_get_value
	cbz	x0, LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _JSONFailure@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JSONFailure@GOTPAGEOFF]
LBB0_5:
	ldr	x0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldp	w22, w8, [x19]
	cmp	w22, w8
	b.lt	LBB0_10
; %bb.8:
	lsl	w0, w8, #1
Lloh2:
	adrp	x8, _STARTING_CAPACITY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STARTING_CAPACITY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_json_object_resize
Lloh5:
	adrp	x8, _JSONFailure@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JSONFailure@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.9:
	ldr	w22, [x19]
LBB0_10:
	mov	x0, x21
	bl	_parson_strdup
	ldr	x8, [x19, #16]
	sbfiz	x9, x22, #3, #32
	str	x0, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_4
; %bb.11:
	sxtw	x21, w22
	mov	x0, x19
	bl	_json_object_get_wrapping_value
	str	w0, [x20]
	ldr	x8, [x19, #8]
	str	x20, [x8, x21, lsl #3]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
Lloh8:
	adrp	x8, _JSONSuccess@GOTPAGE
Lloh9:
	ldr	x8, [x8, _JSONSuccess@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_JSONFailure,8,3                ; @JSONFailure
	.comm	_STARTING_CAPACITY,4,2          ; @STARTING_CAPACITY
	.comm	_JSONSuccess,8,3                ; @JSONSuccess
	.no_dead_strip	_json_object_add
.subsections_via_symbols
