	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucl_object_lua_fromtable
_ucl_object_lua_fromtable:              ## @ucl_object_lua_fromtable
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testl	%esi, %esi
	jns	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_lua_gettop
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %r14d
	incl	%r14d
LBB0_2:
	movq	%r13, %rdi
	callq	_lua_pushnil
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_lua_next
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	_LUA_TNUMBER@GOTPCREL(%rip), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_lua_pop
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_lua_next
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$-2, %esi
	callq	_lua_type
	cmpq	(%rbx), %rax
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	$-2, %esi
	callq	_lua_tonumber
	cvttpd2dq	%xmm0, %xmm1
	cvtdq2pd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	LBB0_14
	jp	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r12d, %xmm1
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cvttsd2si	%xmm0, %r12d
	jmp	LBB0_8
LBB0_9:
	movq	_UCL_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ucl_object_typed_new
	movq	%rax, %r15
	testl	%r12d, %r12d
	jle	LBB0_19
## %bb.10:
	negl	%r12d
	movl	$1, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_lua_pop
	leal	(%r12,%rbx), %eax
	incl	%eax
	movl	%ebx, %ecx
	incl	%ecx
	movl	%ecx, %ebx
	cmpl	$1, %eax
	je	LBB0_19
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_lua_pushinteger
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_lua_gettable
	movq	%r13, %rdi
	callq	_lua_gettop
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ucl_object_lua_fromelt
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ucl_array_append
	jmp	LBB0_13
LBB0_14:
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_lua_pop
	movq	%r13, %rdi
	callq	_lua_pushnil
	movq	_UCL_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ucl_object_typed_new
	movq	%rax, %r15
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_lua_next
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	leaq	-48(%rbp), %r12
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_lua_pop
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_lua_next
	testq	%rax, %rax
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$-2, %esi
	movq	%r12, %rdx
	callq	_lua_tolstring
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_lua_gettop
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ucl_object_lua_fromelt
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	movl	$1, %r8d
	callq	_ucl_object_insert_key
	jmp	LBB0_18
LBB0_19:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MIN,4,2                    ## @INT_MIN
	.comm	_LUA_TNUMBER,8,3                ## @LUA_TNUMBER
	.comm	_UCL_ARRAY,4,2                  ## @UCL_ARRAY
	.comm	_UCL_OBJECT,4,2                 ## @UCL_OBJECT
	.no_dead_strip	_ucl_object_lua_fromtable
.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_fromtable
_ucl_object_lua_fromtable:              ; @ucl_object_lua_fromtable
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	tbz	w1, #31, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_lua_gettop
	add	w8, w19, w0
	add	w19, w8, #1
LBB0_2:
	mov	x0, x20
	bl	_lua_pushnil
	mov	x0, x20
	mov	x1, x19
	bl	_lua_next
	cbz	x0, LBB0_7
; %bb.3:
Lloh3:
	adrp	x21, _LUA_TNUMBER@GOTPAGE
Lloh4:
	ldr	x21, [x21, _LUA_TNUMBER@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #-2
	bl	_lua_type
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w1, #-2
	bl	_lua_tonumber
	fcvtzs	w8, d0
	scvtf	d1, w8
	fcmp	d0, d1
	b.ne	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	scvtf	d1, w23
	fcmp	d0, d1
	csel	w23, w8, w23, gt
	mov	x0, x20
	mov	w1, #1
	bl	_lua_pop
	mov	x0, x20
	mov	x1, x19
	bl	_lua_next
	cbnz	x0, LBB0_4
LBB0_7:
Lloh5:
	adrp	x8, _UCL_ARRAY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UCL_ARRAY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_ucl_object_typed_new
	mov	x21, x0
	cmp	w23, #1
	b.lt	LBB0_17
; %bb.8:
	mov	w22, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_lua_pop
	cmp	w23, w22
	b.eq	LBB0_17
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	w22, w22, #1
	mov	x0, x20
	mov	x1, x22
	bl	_lua_pushinteger
	mov	x0, x20
	mov	x1, x19
	bl	_lua_gettable
	mov	x0, x20
	bl	_lua_gettop
	mov	x1, x0
	mov	x0, x20
	bl	_ucl_object_lua_fromelt
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x0
	mov	x0, x21
	bl	_ucl_array_append
	b	LBB0_9
LBB0_12:
	mov	x0, x20
	mov	w1, #2
	bl	_lua_pop
	mov	x0, x20
	bl	_lua_pushnil
Lloh8:
	adrp	x8, _UCL_OBJECT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UCL_OBJECT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_ucl_object_typed_new
	mov	x21, x0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_lua_pop
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_lua_next
	cbz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #-2
	bl	_lua_tolstring
	mov	x22, x0
	mov	x0, x20
	bl	_lua_gettop
	mov	x1, x0
	mov	x0, x20
	bl	_ucl_object_lua_fromelt
	cbz	x0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x0
	ldr	x3, [sp, #8]
	mov	x0, x21
	mov	x2, x22
	mov	w4, #1
	bl	_ucl_object_insert_key
	b	LBB0_13
LBB0_17:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MIN,4,2                    ; @INT_MIN
	.comm	_LUA_TNUMBER,8,3                ; @LUA_TNUMBER
	.comm	_UCL_ARRAY,4,2                  ; @UCL_ARRAY
	.comm	_UCL_OBJECT,4,2                 ; @UCL_OBJECT
	.no_dead_strip	_ucl_object_lua_fromtable
.subsections_via_symbols
