	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucl_object_lua_push_scalar
_ucl_object_lua_push_scalar:            ## @ucl_object_lua_push_scalar
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	cmpq	$0, 16(%rsi)
	je	LBB0_2
## %bb.13:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ucl_object_lua_push_array      ## TAILCALL
LBB0_2:
	movl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_11
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	%rsi, %rdi
	callq	_ucl_obj_todouble
	jmp	LBB0_7
LBB0_11:
	movq	%rbx, %rdi
	callq	_lua_pushnil
	jmp	LBB0_12
LBB0_10:
	movq	8(%rsi), %rax
	movq	_LUA_REGISTRYINDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_lua_rawgeti
	jmp	LBB0_12
LBB0_5:
	movq	%rsi, %rdi
	callq	_ucl_obj_tostring
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_lua_pushstring
	jmp	LBB0_12
LBB0_9:
	movq	_LUA_REGISTRYINDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_lua_getfield
	jmp	LBB0_12
LBB0_6:
	movq	%rsi, %rdi
	callq	_ucl_obj_toint
LBB0_7:
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_lua_pushnumber
	jmp	LBB0_12
LBB0_4:
	movq	%rsi, %rdi
	callq	_ucl_obj_toboolean
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_lua_pushboolean
LBB0_12:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_LUA_REGISTRYINDEX,4,2          ## @LUA_REGISTRYINDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ucl.null"

	.no_dead_strip	_ucl_object_lua_push_scalar
.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_push_scalar
_ucl_object_lua_push_scalar:            ; @ucl_object_lua_push_scalar
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	w2, LBB0_3
; %bb.1:
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ucl_object_lua_push_array
LBB0_3:
	ldr	w8, [x1]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_6
; %bb.4:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	mov	x0, x1
	bl	_ucl_obj_todouble
	b	LBB0_11
LBB0_6:
	mov	x0, x19
	bl	_lua_pushnil
	b	LBB0_13
LBB0_7:
	ldr	x8, [x1, #8]
Lloh2:
	adrp	x9, _LUA_REGISTRYINDEX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LUA_REGISTRYINDEX@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_lua_rawgeti
	b	LBB0_13
LBB0_8:
	mov	x0, x1
	bl	_ucl_obj_tostring
	mov	x1, x0
	mov	x0, x19
	bl	_lua_pushstring
	b	LBB0_13
LBB0_9:
Lloh5:
	adrp	x8, _LUA_REGISTRYINDEX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LUA_REGISTRYINDEX@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_lua_getfield
	b	LBB0_13
LBB0_10:
	mov	x0, x1
	bl	_ucl_obj_toint
LBB0_11:
	mov	x1, x0
	mov	x0, x19
	bl	_lua_pushnumber
	b	LBB0_13
LBB0_12:
	mov	x0, x1
	bl	_ucl_obj_toboolean
	mov	x1, x0
	mov	x0, x19
	bl	_lua_pushboolean
LBB0_13:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
                                        ; -- End function
	.comm	_LUA_REGISTRYINDEX,4,2          ; @LUA_REGISTRYINDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ucl.null"

	.no_dead_strip	_ucl_object_lua_push_scalar
.subsections_via_symbols
