	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucl_object_lua_fromelt
_ucl_object_lua_fromelt:                ## @ucl_object_lua_fromelt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_lua_type
	movl	%eax, %ebx
	leal	-128(%rbx), %eax
	cmpl	$6, %eax
	ja	LBB0_17
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_luaL_getmetafield
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_lua_isfunction
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_lua_settop
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_lua_insert
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_lua_insert
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$1, %edx
	callq	_lua_call
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ucl_object_lua_fromelt
	movq	%rax, %rbx
	jmp	LBB0_12
LBB0_13:
	cmpl	$133, %ebx
	je	LBB0_16
## %bb.14:
	cmpl	$130, %ebx
	jne	LBB0_17
## %bb.15:
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ucl_object_lua_fromtable       ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_lua_topointer
	movq	_ucl_null@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.7:
	movq	_UCL_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ucl_object_typed_new           ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_lua_tostring
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ucl_object_fromstring_common   ## TAILCALL
LBB0_3:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_lua_tonumber
	addq	$8, %rsp
	ucomisd	%xmm0, %xmm0
	jp	LBB0_4
## %bb.19:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ucl_object_fromint             ## TAILCALL
LBB0_5:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_lua_toboolean
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ucl_object_frombool            ## TAILCALL
LBB0_10:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_lua_pop
	jmp	LBB0_18
LBB0_16:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.20:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_lua_pushvalue
	movq	%r14, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	_LUA_REGISTRYINDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_luaL_ref
	movl	%eax, (%rbx)
	movq	_lua_ucl_userdata_dtor@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_lua_ucl_userdata_emitter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ucl_object_new_userdata        ## TAILCALL
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ucl_object_fromdouble          ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_ucl_null,4,2                   ## @ucl_null
	.comm	_UCL_NULL,4,2                   ## @UCL_NULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"__gen_ucl"

	.comm	_LUA_REGISTRYINDEX,4,2          ## @LUA_REGISTRYINDEX
	.comm	_lua_ucl_userdata_dtor,4,2      ## @lua_ucl_userdata_dtor
	.comm	_lua_ucl_userdata_emitter,4,2   ## @lua_ucl_userdata_emitter
	.no_dead_strip	_ucl_object_lua_fromelt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucl_object_lua_fromelt
_ucl_object_lua_fromelt:                ; @ucl_object_lua_fromelt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	bl	_lua_type
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_18
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x21, x0
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_luaL_getmetafield
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_isfunction
	cbz	w0, LBB0_14
; %bb.4:
	mov	x0, x19
	mov	w1, #3
	bl	_lua_settop
	mov	x0, x19
	mov	w1, #1
	bl	_lua_insert
	mov	x0, x19
	mov	w1, #2
	bl	_lua_insert
	mov	x0, x19
	mov	w1, #2
	mov	w2, #1
	bl	_lua_call
	mov	x0, x19
	mov	w1, #1
	bl	_ucl_object_lua_fromelt
	mov	x20, x0
	b	LBB0_15
LBB0_5:
	cmp	w21, #133
	b.eq	LBB0_16
; %bb.6:
	cmp	w21, #130
	b.ne	LBB0_18
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ucl_object_lua_fromtable
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_lua_topointer
Lloh4:
	adrp	x8, _ucl_null@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ucl_null@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.9:
Lloh7:
	adrp	x8, _UCL_NULL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UCL_NULL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ucl_object_typed_new
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_lua_tostring
	mov	w1, #0
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ucl_object_fromstring_common
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_lua_tonumber
	fcmp	d0, d0
	b.vs	LBB0_20
; %bb.12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ucl_object_fromint
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_lua_toboolean
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ucl_object_frombool
LBB0_14:
	mov	x20, #0
LBB0_15:
	mov	x0, x19
	mov	w1, #2
	bl	_lua_pop
	b	LBB0_19
LBB0_16:
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_18
; %bb.17:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_lua_pushvalue
	stp	xzr, x19, [x21, #8]
Lloh10:
	adrp	x8, _LUA_REGISTRYINDEX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LUA_REGISTRYINDEX@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_luaL_ref
	str	w0, [x21]
Lloh13:
	adrp	x8, _lua_ucl_userdata_dtor@GOTPAGE
Lloh14:
	ldr	x8, [x8, _lua_ucl_userdata_dtor@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _lua_ucl_userdata_emitter@GOTPAGE
Lloh17:
	ldr	x8, [x8, _lua_ucl_userdata_emitter@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ucl_object_new_userdata
LBB0_18:
	mov	x20, #0
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ucl_object_fromdouble
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.comm	_ucl_null,4,2                   ; @ucl_null
	.comm	_UCL_NULL,4,2                   ; @UCL_NULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"__gen_ucl"

	.comm	_LUA_REGISTRYINDEX,4,2          ; @LUA_REGISTRYINDEX
	.comm	_lua_ucl_userdata_dtor,4,2      ; @lua_ucl_userdata_dtor
	.comm	_lua_ucl_userdata_emitter,4,2   ; @lua_ucl_userdata_emitter
	.no_dead_strip	_ucl_object_lua_fromelt
.subsections_via_symbols
