	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function json_object_resize
_json_object_resize:                    ## @json_object_resize
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	cmpq	$0, (%rdi)
	movq	8(%rdi), %rax
	movq	_JSONFailure@GOTPCREL(%rip), %r12
	je	LBB0_1
## %bb.3:
	testq	%r14, %r14
	je	LBB0_14
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_14
LBB0_1:
	testq	%r14, %r14
	je	LBB0_14
## %bb.2:
	testq	%rax, %rax
	jne	LBB0_14
LBB0_5:
	leaq	(,%r14,8), %rbx
	movq	%rbx, %rdi
	callq	_parson_malloc
	movq	_JSONFailure@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_parson_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.10:
	cmpq	$0, 8(%r13)
	je	LBB0_13
## %bb.11:
	movl	16(%r13), %edx
	testl	%edx, %edx
	jle	LBB0_13
## %bb.12:
	shll	$3, %edx
	movq	%r15, %rdi
	callq	_memcpy
	movq	8(%r13), %rsi
	movl	16(%r13), %edx
	shll	$3, %edx
	movq	%rbx, %rdi
	callq	_memcpy
	movq	(%r13), %rsi
	jmp	LBB0_13
LBB0_7:
	movq	%r15, %rdi
	callq	_parson_free
	jmp	LBB0_14
LBB0_9:
	xorl	%esi, %esi
LBB0_13:
	movq	%rsi, %rdi
	callq	_parson_free
	movq	8(%r13), %rdi
	callq	_parson_free
	movq	%r15, (%r13)
	movq	%rbx, 8(%r13)
	movq	%r14, 24(%r13)
	movq	_JSONSuccess@GOTPCREL(%rip), %r12
LBB0_14:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JSONFailure,4,2                ## @JSONFailure
	.comm	_JSONSuccess,4,2                ## @JSONSuccess
	.no_dead_strip	_json_object_resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function json_object_resize
_json_object_resize:                    ; @json_object_resize
	.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
	mov	x19, x1
	mov	x20, x0
	ldp	x8, x9, [x0]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _JSONFailure@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JSONFailure@GOTPAGEOFF]
	cbz	x19, LBB0_14
; %bb.2:
	cbnz	x9, LBB0_5
	b	LBB0_14
LBB0_3:
Lloh2:
	adrp	x8, _JSONFailure@GOTPAGE
Lloh3:
	ldr	x8, [x8, _JSONFailure@GOTPAGEOFF]
	cbz	x19, LBB0_14
; %bb.4:
	cbnz	x9, LBB0_14
LBB0_5:
	lsl	x22, x19, #3
	mov	x0, x22
	bl	_parson_malloc
	cbz	x0, LBB0_13
; %bb.6:
	mov	x21, x0
	mov	x0, x22
	bl	_parson_malloc
	cbz	x0, LBB0_12
; %bb.7:
	mov	x22, x0
	ldr	x1, [x20]
	cbz	x1, LBB0_11
; %bb.8:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.10:
	lsl	w2, w8, #3
	mov	x0, x21
	bl	_memcpy
	ldr	x1, [x20, #8]
	ldr	w8, [x20, #16]
	lsl	w2, w8, #3
	mov	x0, x22
	bl	_memcpy
	ldr	x1, [x20]
LBB0_11:
	mov	x0, x1
	bl	_parson_free
	ldr	x0, [x20, #8]
	bl	_parson_free
	stp	x21, x22, [x20]
	str	x19, [x20, #24]
Lloh4:
	adrp	x8, _JSONSuccess@GOTPAGE
Lloh5:
	ldr	x8, [x8, _JSONSuccess@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	mov	x0, x21
	bl	_parson_free
LBB0_13:
Lloh6:
	adrp	x8, _JSONFailure@GOTPAGE
Lloh7:
	ldr	x8, [x8, _JSONFailure@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_JSONFailure,4,2                ; @JSONFailure
	.comm	_JSONSuccess,4,2                ; @JSONSuccess
	.no_dead_strip	_json_object_resize
.subsections_via_symbols
