	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lua_ucl_parser_parse_string
_lua_ucl_parser_parse_string:           ## @lua_ucl_parser_parse_string
	.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, %r13
	movq	_UCL_PARSE_UCL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$1, %esi
	callq	_lua_ucl_parser_get
	movq	%rax, %r14
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_luaL_checklstring
	movq	%rax, %r12
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_lua_type
	movq	_LUA_TSTRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_lua_tostring
	movl	%eax, %edi
	callq	_lua_ucl_str_to_parse_type
	movl	%eax, %r15d
LBB0_2:
	testq	%r14, %r14
	je	LBB0_7
## %bb.3:
	testq	%r12, %r12
	je	LBB0_7
## %bb.4:
	movq	-48(%rbp), %rdx
	movq	_UCL_DUPLICATE_APPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	%r15d, %r9d
	callq	_ucl_parser_add_chunk_full
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	$1, %ebx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_lua_pushboolean
	jmp	LBB0_9
LBB0_7:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_lua_pushboolean
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	jmp	LBB0_8
LBB0_6:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_lua_pushboolean
	movq	%r14, %rdi
	callq	_ucl_parser_get_error
	movq	%r13, %rdi
	movq	%rax, %rsi
LBB0_8:
	callq	_lua_pushstring
	movl	$2, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UCL_PARSE_UCL,4,2              ## @UCL_PARSE_UCL
	.comm	_LUA_TSTRING,8,3                ## @LUA_TSTRING
	.comm	_UCL_DUPLICATE_APPEND,4,2       ## @UCL_DUPLICATE_APPEND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid arguments"

	.no_dead_strip	_lua_ucl_parser_parse_string
.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_parse_string
_lua_ucl_parser_parse_string:           ; @lua_ucl_parser_parse_string
	.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
Lloh0:
	adrp	x8, _UCL_PARSE_UCL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UCL_PARSE_UCL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	w1, #1
	bl	_lua_ucl_parser_get
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #2
	bl	_luaL_checklstring
	mov	x22, x0
	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]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #3
	bl	_lua_tostring
	bl	_lua_ucl_str_to_parse_type
	mov	x21, x0
LBB0_2:
	cbz	x20, LBB0_6
; %bb.3:
	cbz	x22, LBB0_6
; %bb.4:
	ldr	x2, [sp, #8]
Lloh6:
	adrp	x8, _UCL_DUPLICATE_APPEND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UCL_DUPLICATE_APPEND@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	x5, x21
	bl	_ucl_parser_add_chunk_full
	cbz	x0, LBB0_7
; %bb.5:
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pushboolean
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_lua_pushboolean
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	bl	_lua_pushboolean
	mov	x0, x20
	bl	_ucl_parser_get_error
	mov	x1, x0
LBB0_8:
	mov	x0, x19
	bl	_lua_pushstring
	mov	w20, #2
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_UCL_PARSE_UCL,4,2              ; @UCL_PARSE_UCL
	.comm	_LUA_TSTRING,8,3                ; @LUA_TSTRING
	.comm	_UCL_DUPLICATE_APPEND,4,2       ; @UCL_DUPLICATE_APPEND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arguments"

	.no_dead_strip	_lua_ucl_parser_parse_string
.subsections_via_symbols
