	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lua_ucl_parser_validate
_lua_ucl_parser_validate:               ## @lua_ucl_parser_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$1, %esi
	callq	_lua_ucl_parser_get
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r14
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.2:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_lua_type
	movq	_LUA_TTABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_ucl_object_lua_import
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_lua_pushboolean
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_15
LBB0_14:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_lua_pushboolean
	leaq	L_.str.4(%rip), %rsi
LBB0_15:
	movq	%rbx, %rdi
	callq	_lua_pushstring
LBB0_16:
	movl	$2, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_lua_type
	movq	_LUA_TSTRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	xorl	%edi, %edi
	callq	_ucl_parser_new
	movq	%rax, %r12
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_luaL_checkstring
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_ucl_parser_add_file
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:
	movq	%r12, %rdi
	callq	_ucl_parser_get_object
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_ucl_parser_free
LBB0_10:
	movq	(%r14), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ucl_object_validate
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	$1, %esi
	callq	_lua_pushboolean
	movq	%rbx, %rdi
	callq	_lua_pushnil
	jmp	LBB0_13
LBB0_8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_lua_pushboolean
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_15
LBB0_11:
	xorl	%esi, %esi
	callq	_lua_pushboolean
	movslq	-40(%rbp), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_lua_pushfstring
LBB0_13:
	movq	%r15, %rdi
	callq	_ucl_object_unref
	jmp	LBB0_16
LBB0_7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_lua_pushboolean
	movq	%r14, %rdi
	callq	_ucl_parser_get_error
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_lua_pushfstring
	movq	%r12, %rdi
	callq	_ucl_parser_free
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_TTABLE,8,3                 ## @LUA_TTABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot load schema from lua table"

	.comm	_LUA_TSTRING,8,3                ## @LUA_TSTRING
L_.str.1:                               ## @.str.1
	.asciz	"cannot parse schema file \"%s\": %s"

L_.str.2:                               ## @.str.2
	.asciz	"invalid schema argument"

L_.str.3:                               ## @.str.3
	.asciz	"validation error: %s"

L_.str.4:                               ## @.str.4
	.asciz	"invalid parser or empty top object"

	.no_dead_strip	_lua_ucl_parser_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_parser_validate
_lua_ucl_parser_validate:               ; @lua_ucl_parser_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	w1, #1
	bl	_lua_ucl_parser_get
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #2
	bl	_lua_type
Lloh0:
	adrp	x8, _LUA_TTABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUA_TTABLE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x19
	mov	w1, #2
	bl	_ucl_object_lua_import
	mov	x21, x0
	cbnz	x0, LBB0_11
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_lua_pushboolean
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	bl	_lua_pushboolean
Lloh5:
	adrp	x1, l_.str.4@PAGE
Lloh6:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_lua_pushstring
LBB0_7:
	mov	w0, #2
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	mov	x0, x19
	mov	w1, #2
	bl	_lua_type
Lloh7:
	adrp	x8, _LUA_TSTRING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LUA_TSTRING@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.9:
	mov	w0, #0
	bl	_ucl_parser_new
	mov	x22, x0
	mov	x0, x19
	mov	w1, #2
	bl	_luaL_checkstring
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_ucl_parser_add_file
	cbz	w0, LBB0_16
; %bb.10:
	mov	x0, x22
	bl	_ucl_parser_get_object
	mov	x21, x0
	mov	x0, x22
	bl	_ucl_parser_free
LBB0_11:
	ldr	x1, [x20]
	add	x2, sp, #8
	mov	x0, x21
	bl	_ucl_object_validate
	cbz	w0, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pushboolean
	mov	x0, x19
	bl	_lua_pushnil
	b	LBB0_15
LBB0_13:
	mov	x0, x19
	mov	w1, #0
	bl	_lua_pushboolean
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_14:
	mov	x0, x19
	mov	w1, #0
	bl	_lua_pushboolean
	ldrsw	x2, [sp, #8]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_lua_pushfstring
LBB0_15:
	mov	x0, x21
	bl	_ucl_object_unref
	b	LBB0_7
LBB0_16:
	mov	x0, x19
	mov	w1, #0
	bl	_lua_pushboolean
	mov	x0, x20
	bl	_ucl_parser_get_error
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_lua_pushfstring
	mov	x0, x22
	bl	_ucl_parser_free
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_TTABLE,8,3                 ; @LUA_TTABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot load schema from lua table"

	.comm	_LUA_TSTRING,8,3                ; @LUA_TSTRING
l_.str.1:                               ; @.str.1
	.asciz	"cannot parse schema file \"%s\": %s"

l_.str.2:                               ; @.str.2
	.asciz	"invalid schema argument"

l_.str.3:                               ; @.str.3
	.asciz	"validation error: %s"

l_.str.4:                               ; @.str.4
	.asciz	"invalid parser or empty top object"

	.no_dead_strip	_lua_ucl_parser_validate
.subsections_via_symbols
