	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_array_nomem               ## -- Begin function test_array_nomem
	.p2align	4, 0x90
_test_array_nomem:                      ## @test_array_nomem
	.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	$344, %rsp                      ## imm = 0x158
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%ebx, %ebx
	leaq	-208(%rbp), %r15
	leaq	-368(%rbp), %r12
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-372(%rbp), %r14
	movq	%r14, %rdi
	callq	_jsmn_init
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$160, %edx
	callq	_memset
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$160, %edx
	callq	_memset
	movq	%r13, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	movq	%r15, %rcx
	movl	%ebx, %r8d
	callq	_jsmn_parse
	xorl	%edi, %edi
	movq	_JSMN_ERROR_NOMEM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_check
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$160, %edx
	callq	_memcpy
	movq	%r13, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	movq	%r12, %rcx
	movl	$10, %r8d
	callq	_jsmn_parse
	notl	%eax
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_check
	movq	-368(%rbp), %rax
	movq	_JSMN_ARRAY@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	sete	%al
	cmpl	$3, -360(%rbp)
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_check
	movq	-320(%rbp), %rax
	cmpq	(%r14), %rax
	sete	%al
	cmpl	$2, -312(%rbp)
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_check
	incl	%ebx
	cmpl	$6, %ebx
	jne	LBB0_1
## %bb.2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	addq	$344, %rsp                      ## imm = 0x158
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  [ 1, true, [123, \"hello\"]]"

	.comm	_JSMN_ERROR_NOMEM,4,2           ## @JSMN_ERROR_NOMEM
	.comm	_JSMN_ARRAY,8,3                 ## @JSMN_ARRAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_array_nomem               ; -- Begin function test_array_nomem
	.p2align	2
_test_array_nomem:                      ; @test_array_nomem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #400
	.cfi_def_cfa_offset 400
	stp	x28, x27, [sp, #336]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #352]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #368]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #384]            ; 16-byte Folded Spill
	add	x29, sp, #384
	.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 w27, -56
	.cfi_offset w28, -64
	mov	w19, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
Lloh5:
	adrp	x21, _JSMN_ERROR_NOMEM@GOTPAGE
Lloh6:
	ldr	x21, [x21, _JSMN_ERROR_NOMEM@GOTPAGEOFF]
Lloh7:
	adrp	x22, _JSMN_ARRAY@GOTPAGE
Lloh8:
	ldr	x22, [x22, _JSMN_ARRAY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #4
	bl	_jsmn_init
	add	x0, sp, #168
	mov	w1, #0
	mov	w2, #160
	bl	_memset
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #160
	bl	_memset
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	add	x0, sp, #4
	add	x3, sp, #168
	mov	x1, x20
	mov	x4, x19
	bl	_jsmn_parse
	ldr	w8, [x21]
	cmp	w0, w8
	cset	w0, eq
	bl	_check
	add	x0, sp, #8
	add	x1, sp, #168
	mov	w2, #160
	bl	_memcpy
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	add	x0, sp, #4
	add	x3, sp, #8
	mov	x1, x20
	mov	w4, #10
	bl	_jsmn_parse
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_check
	ldr	x8, [sp, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	ldr	w8, [sp, #16]
	ccmp	w8, #3, #0, eq
	cset	w0, eq
	bl	_check
	ldr	x8, [sp, #56]
	ldr	x9, [x22]
	cmp	x8, x9
	ldr	w8, [sp, #64]
	ccmp	w8, #2, #0, eq
	cset	w0, eq
	bl	_check
	add	w19, w19, #1
	cmp	w19, #6
	b.ne	LBB0_1
; %bb.2:
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ldp	x29, x30, [sp, #384]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #368]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #352]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #336]            ; 16-byte Folded Reload
	add	sp, sp, #400
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  [ 1, true, [123, \"hello\"]]"

	.comm	_JSMN_ERROR_NOMEM,4,2           ; @JSMN_ERROR_NOMEM
	.comm	_JSMN_ARRAY,8,3                 ; @JSMN_ARRAY
.subsections_via_symbols
