	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_json_validate                  ## -- Begin function json_validate
	.p2align	4, 0x90
_json_validate:                         ## @json_validate
	.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
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.2:
	movq	%rdi, %r15
	callq	_json_value_get_type
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_json_value_get_type
	cmpl	$131, %ebx
	je	LBB0_4
## %bb.3:
	cmpl	%eax, %ebx
	je	LBB0_4
LBB0_20:
	movq	_JSONFailure@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addl	$-128, %ebx
	cmpl	$7, %ebx
	ja	LBB0_20
## %bb.5:
	movl	$77, %eax
	btl	%ebx, %eax
	jae	LBB0_6
LBB0_9:
	movq	_JSONSuccess@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_6:
	cmpl	$1, %ebx
	je	LBB0_14
## %bb.7:
	cmpl	$7, %ebx
	jne	LBB0_20
## %bb.8:
	movq	%r15, %rdi
	callq	_json_value_get_array
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_json_value_get_array
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_json_array_get_count
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_json_array_get_value
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_json_array_get_count
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	xorl	%ebx, %ebx
	movq	_JSONFailure@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_json_array_get_value
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_json_validate
	cmpl	(%r12), %eax
	je	LBB0_22
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movq	%r15, %rdi
	callq	_json_array_get_count
	cmpq	%rax, %rbx
	jb	LBB0_13
	jmp	LBB0_9
LBB0_14:
	movq	%r15, %rdi
	callq	_json_value_get_object
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_json_value_get_object
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_json_object_get_count
	testq	%rax, %rax
	je	LBB0_9
## %bb.15:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_json_object_get_count
	cmpq	%r15, %rax
	jb	LBB0_20
## %bb.16:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_json_object_get_name
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_json_object_get_value
	movq	%rax, %r13
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_json_object_get_value
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_json_validate
	movq	_JSONFailure@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_18
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_JSONFailure,4,2                ## @JSONFailure
	.comm	_JSONSuccess,4,2                ## @JSONSuccess
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_json_validate                  ; -- Begin function json_validate
	.p2align	2
_json_validate:                         ; @json_validate
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_4
; %bb.2:
	mov	x19, x0
	bl	_json_value_get_type
	mov	x21, x0
	mov	x0, x20
	bl	_json_value_get_type
	cmp	w21, #131
	b.eq	LBB0_7
; %bb.3:
	cmp	w21, w0
	b.eq	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _JSONFailure@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JSONFailure@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	sub	w8, w21, #128
	cmp	w8, #7
	b.hi	LBB0_4
; %bb.8:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #77
	tst	w9, w10
	b.eq	LBB0_10
LBB0_9:
Lloh2:
	adrp	x8, _JSONSuccess@GOTPAGE
Lloh3:
	ldr	x8, [x8, _JSONSuccess@GOTPAGEOFF]
	b	LBB0_5
LBB0_10:
	cmp	w8, #1
	b.eq	LBB0_17
; %bb.11:
	cmp	w8, #7
	b.ne	LBB0_4
; %bb.12:
	mov	x0, x19
	bl	_json_value_get_array
	mov	x21, x0
	mov	x0, x20
	bl	_json_value_get_array
	mov	x19, x0
	mov	x0, x21
	bl	_json_array_get_count
	cbz	x0, LBB0_9
; %bb.13:
	mov	x0, x21
	mov	x1, #0
	bl	_json_array_get_value
	mov	x20, x0
	mov	x0, x19
	bl	_json_array_get_count
	cbz	x0, LBB0_9
; %bb.14:
	mov	x21, #0
Lloh4:
	adrp	x22, _JSONFailure@GOTPAGE
Lloh5:
	ldr	x22, [x22, _JSONFailure@GOTPAGEOFF]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_json_array_get_value
	mov	x1, x0
	mov	x0, x20
	bl	_json_validate
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x21, x21, #1
	mov	x0, x19
	bl	_json_array_get_count
	cmp	x21, x0
	b.lo	LBB0_15
	b	LBB0_9
LBB0_17:
	mov	x0, x19
	bl	_json_value_get_object
	mov	x19, x0
	mov	x0, x20
	bl	_json_value_get_object
	mov	x20, x0
	mov	x0, x19
	bl	_json_object_get_count
	cbz	x0, LBB0_9
; %bb.18:
	mov	x21, x0
	mov	x0, x20
	bl	_json_object_get_count
	cmp	x0, x21
	b.lo	LBB0_4
; %bb.19:
	mov	x22, #0
Lloh6:
	adrp	x25, _JSONFailure@GOTPAGE
Lloh7:
	ldr	x25, [x25, _JSONFailure@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_json_object_get_name
	mov	x24, x0
	mov	x0, x19
	mov	x1, x24
	bl	_json_object_get_value
	mov	x23, x0
	mov	x0, x20
	mov	x1, x24
	bl	_json_object_get_value
	cbz	x0, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x1, x0
	mov	x0, x23
	bl	_json_validate
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_20
	b	LBB0_9
LBB0_23:
	ldr	w0, [x25]
	b	LBB0_6
	.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
.subsections_via_symbols
