	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function json_check_tree_state
_json_check_tree_state:                 ## @json_check_tree_state
	.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
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	32(%rdi), %rdi
	callq	_json_check_tree_state
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	24(%rbx), %rdi
	callq	_json_check_tree_state
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	(%rbx), %rdx
	movq	_JSON_COMPLETED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_6
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rcx
	cmovneq	%rax, %rcx
	movl	16(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_5:
	movl	$-1, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JSON_COMPLETED,8,3             ## @JSON_COMPLETED
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"JSON: Unexpected token state %d (name=%s type=%d)"

L_.str.1:                               ## @.str.1
	.asciz	"N/A"

	.no_dead_strip	_json_check_tree_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function json_check_tree_state
_json_check_tree_state:                 ; @json_check_tree_state
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #32]
	bl	_json_check_tree_state
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	x0, [x19, #24]
	bl	_json_check_tree_state
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	x2, [x19]
Lloh0:
	adrp	x8, _JSON_COMPLETED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JSON_COMPLETED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x3, x9, x8, eq
	ldr	w4, [x19, #16]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	mov	w0, #-1
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
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_JSON_COMPLETED,8,3             ; @JSON_COMPLETED
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"JSON: Unexpected token state %d (name=%s type=%d)"

l_.str.1:                               ; @.str.1
	.asciz	"N/A"

	.no_dead_strip	_json_check_tree_state
.subsections_via_symbols
