	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_array_start
_get_array_start:                       ## @get_array_start
	.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	%rdi, %rbx
	movq	24(%rdi), %rdi
	movslq	(%rdi), %r14
	movl	(%rbx), %eax
	cmpl	%eax, %r14d
	jge	LBB0_5
## %bb.1:
	movq	8(%rbx), %rax
	movl	$-1, (%rax,%r14,4)
	movq	16(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	testq	%rax, %rax
	jns	LBB0_7
## %bb.2:
	movq	_INT_MIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.3:
	callq	_json_count_array_elements
	movq	16(%rbx), %rcx
	movq	(%rcx,%r14,8), %rdx
	movq	%rdx, %rsi
	negq	%rsi
	cltq
	cmpq	%rax, %rsi
	jg	LBB0_7
## %bb.4:
	addq	%rax, %rdx
	movq	%rdx, (%rcx,%r14,8)
	jmp	LBB0_7
LBB0_5:
	orl	%eax, %r14d
	jne	LBB0_7
## %bb.6:
	movl	4(%rdi), %eax
	movl	%eax, 32(%rbx)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MIN,8,3                    ## @INT_MIN
	.no_dead_strip	_get_array_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_array_start
_get_array_start:                       ; @get_array_start
	.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	x19, x0
	ldr	x0, [x0, #24]
	ldrsw	x20, [x0]
	ldr	w8, [x19]
	cmp	w20, w8
	b.ge	LBB0_5
; %bb.1:
	mov	w8, #-1
	ldp	x9, x10, [x19, #8]
	str	w8, [x9, x20, lsl #2]
	ldr	x8, [x10, x20, lsl #3]
	tbz	x8, #63, LBB0_7
; %bb.2:
Lloh0:
	adrp	x9, _INT_MIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.3:
	bl	_json_count_array_elements
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19, #16]
	ldr	x9, [x8, x20, lsl #3]
	sxtw	x10, w0
	neg	x11, x9
	cmp	x11, x10
	b.gt	LBB0_7
; %bb.4:
	add	x9, x9, x10
	str	x9, [x8, x20, lsl #3]
	b	LBB0_7
LBB0_5:
	orr	w8, w20, w8
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	w8, [x0, #4]
	str	w8, [x19, #32]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MIN,8,3                    ; @INT_MIN
	.no_dead_strip	_get_array_start
.subsections_via_symbols
