	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lua_ucl_object_validate
_lua_ucl_object_validate:               ## @lua_ucl_object_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
	movq	%rdi, %rbx
	movl	$1, %esi
	callq	_lua_ucl_object_get
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_lua_ucl_object_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ucl_object_type
	movq	_UCL_OBJECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_lua_gettop
	cmpl	$3, %eax
	jl	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_lua_type
	movq	_LUA_TSTRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_lua_tostring
	xorl	%r13d, %r13d
	cmpb	$35, (%rax)
	sete	%r13b
	addq	%rax, %r13
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_6:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_lua_pushboolean
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_lua_pushstring
LBB0_7:
	cmpq	$1, %r14
	movl	$3, %eax
	sbbl	$0, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	jmp	LBB0_19
LBB0_9:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_lua_type
	movq	_LUA_TUSERDATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_lua_type
	movq	_LUA_TTABLE@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	movl	$0, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_lua_ucl_object_get
	movq	%rax, %r14
	xorl	%r13d, %r13d
LBB0_12:
	movq	%rbx, %rdi
	callq	_lua_gettop
	cmpl	$4, %eax
	jl	LBB0_16
## %bb.13:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_lua_type
	movq	_LUA_TUSERDATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_lua_type
	movq	_LUA_TTABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
LBB0_15:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_lua_ucl_object_get
	movq	%rax, %r14
LBB0_16:
	movq	%r12, %rdi
	testq	%r13, %r13
	je	LBB0_19
## %bb.17:
	movq	%r13, %rsi
	movl	$47, %edx
	callq	_ucl_object_lookup_path_char
	testq	%rax, %rax
	je	LBB0_24
## %bb.18:
	movq	%rax, %rdi
LBB0_19:
	leaq	-48(%rbp), %r8
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_ucl_object_validate_root_ext
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_22
## %bb.20:
	movl	%eax, %esi
	callq	_lua_pushboolean
	movq	%rbx, %rdi
	callq	_lua_pushnil
	testq	%r14, %r14
	je	LBB0_21
LBB0_25:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_lua_ucl_push_opaque
	jmp	LBB0_7
LBB0_22:
	xorl	%esi, %esi
	callq	_lua_pushboolean
	movq	-48(%rbp), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	jmp	LBB0_23
LBB0_24:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_lua_pushboolean
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
LBB0_23:
	callq	_lua_pushfstring
	testq	%r14, %r14
	jne	LBB0_25
LBB0_21:
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_UCL_OBJECT,8,3                 ## @UCL_OBJECT
	.comm	_LUA_TSTRING,8,3                ## @LUA_TSTRING
	.comm	_LUA_TUSERDATA,8,3              ## @LUA_TUSERDATA
	.comm	_LUA_TTABLE,8,3                 ## @LUA_TTABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"validation error: %s"

L_.str.1:                               ## @.str.1
	.asciz	"cannot find the requested path: %s"

L_.str.2:                               ## @.str.2
	.asciz	"invalid object or schema"

	.no_dead_strip	_lua_ucl_object_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lua_ucl_object_validate
_lua_ucl_object_validate:               ; @lua_ucl_object_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	mov	w1, #1
	bl	_lua_ucl_object_get
	mov	x20, x0
	mov	x0, x19
	mov	w1, #2
	bl	_lua_ucl_object_get
	cbz	x0, LBB0_6
; %bb.1:
	cbz	x20, LBB0_6
; %bb.2:
	mov	x21, x0
	bl	_ucl_object_type
Lloh0:
	adrp	x8, _UCL_OBJECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UCL_OBJECT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_lua_gettop
	cmp	w0, #3
	b.lt	LBB0_8
; %bb.4:
	mov	x0, x19
	mov	w1, #3
	bl	_lua_type
Lloh3:
	adrp	x8, _LUA_TSTRING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LUA_TSTRING@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x24, _LUA_TUSERDATA@GOTPAGE
Lloh7:
	ldr	x24, [x24, _LUA_TUSERDATA@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x19
	mov	w1, #3
	bl	_lua_tostring
	mov	x22, #0
	mov	x8, x0
	ldrb	w9, [x8], #1
	cmp	w9, #35
	csel	x23, x0, x8, ne
	b	LBB0_14
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_lua_pushboolean
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_lua_pushstring
	mov	x22, #0
LBB0_7:
	cmp	x22, #0
	mov	w8, #2
	cinc	w0, w8, ne
	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
	add	sp, sp, #80
	ret
LBB0_8:
	mov	x22, #0
	mov	x0, x21
	b	LBB0_20
LBB0_9:
	mov	x0, x19
	mov	w1, #3
	bl	_lua_type
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #3
	bl	_lua_type
Lloh10:
	adrp	x8, _LUA_TTABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LUA_TTABLE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
LBB0_11:
	mov	x0, x19
	mov	w1, #3
	bl	_lua_ucl_object_get
	mov	x22, x0
	b	LBB0_13
LBB0_12:
	mov	x22, #0
LBB0_13:
	mov	x23, #0
LBB0_14:
	mov	x0, x19
	bl	_lua_gettop
	cmp	w0, #4
	b.lt	LBB0_18
; %bb.15:
	mov	x0, x19
	mov	w1, #4
	bl	_lua_type
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x19
	mov	w1, #4
	bl	_lua_type
Lloh13:
	adrp	x8, _LUA_TTABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LUA_TTABLE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
LBB0_17:
	mov	x0, x19
	mov	w1, #4
	bl	_lua_ucl_object_get
	mov	x22, x0
LBB0_18:
	mov	x0, x21
	cbz	x23, LBB0_20
; %bb.19:
	mov	x1, x23
	mov	w2, #47
	bl	_ucl_object_lookup_path_char
	cbz	x0, LBB0_23
LBB0_20:
	add	x4, sp, #8
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_ucl_object_validate_root_ext
	mov	x1, x0
	cbz	w0, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_lua_pushboolean
	mov	x0, x19
	bl	_lua_pushnil
	cbnz	x22, LBB0_25
	b	LBB0_7
LBB0_22:
	mov	x0, x19
	bl	_lua_pushboolean
	ldr	x2, [sp, #8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_24
LBB0_23:
	mov	x0, x19
	mov	w1, #0
	bl	_lua_pushboolean
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x23
LBB0_24:
	bl	_lua_pushfstring
	cbz	x22, LBB0_7
LBB0_25:
	mov	x0, x19
	mov	x1, x22
	bl	_lua_ucl_push_opaque
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_UCL_OBJECT,8,3                 ; @UCL_OBJECT
	.comm	_LUA_TSTRING,8,3                ; @LUA_TSTRING
	.comm	_LUA_TUSERDATA,8,3              ; @LUA_TUSERDATA
	.comm	_LUA_TTABLE,8,3                 ; @LUA_TTABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"validation error: %s"

l_.str.1:                               ; @.str.1
	.asciz	"cannot find the requested path: %s"

l_.str.2:                               ; @.str.2
	.asciz	"invalid object or schema"

	.no_dead_strip	_lua_ucl_object_validate
.subsections_via_symbols
