	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function os_time
_os_time:                               ## @os_time
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$1, %esi
	callq	_lua_isnoneornil
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %rbx
	cmpq	$-1, %rbx
	je	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_l_pushtime
	movl	$1, %eax
	jmp	LBB0_6
LBB0_2:
	movq	_LUA_TTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_luaL_checktype
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_lua_settop
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_getfield
	movq	%rax, -32(%rbp)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_getfield
	movq	%rax, -40(%rbp)
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	$12, %edx
	xorl	%ecx, %ecx
	callq	_getfield
	movq	%rax, -48(%rbp)
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	callq	_getfield
	movq	%rax, -56(%rbp)
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	$-1, %edx
	movl	$1, %ecx
	callq	_getfield
	movq	%rax, -64(%rbp)
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	$-1, %edx
	movl	$1900, %ecx                     ## imm = 0x76C
	callq	_getfield
	movq	%rax, -72(%rbp)
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_getboolfield
	movl	%eax, -80(%rbp)
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	callq	_mktime
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_setallfields
	cmpq	$-1, %rbx
	jne	LBB0_5
LBB0_4:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_luaL_error
LBB0_6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_TTABLE,4,2                 ## @LUA_TTABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sec"

L_.str.1:                               ## @.str.1
	.asciz	"min"

L_.str.2:                               ## @.str.2
	.asciz	"hour"

L_.str.3:                               ## @.str.3
	.asciz	"day"

L_.str.4:                               ## @.str.4
	.asciz	"month"

L_.str.5:                               ## @.str.5
	.asciz	"year"

L_.str.6:                               ## @.str.6
	.asciz	"isdst"

L_.str.7:                               ## @.str.7
	.asciz	"time result cannot be represented in this installation"

	.no_dead_strip	_os_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function os_time
_os_time:                               ; @os_time
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #1
	bl	_lua_isnoneornil
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, #0
	bl	_time
	mov	x20, x0
	cmn	x20, #1
	b.eq	LBB0_4
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_l_pushtime
	mov	w0, #1
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _LUA_TTABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUA_TTABLE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_luaL_checktype
	mov	x0, x19
	mov	w1, #1
	bl	_lua_settop
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_getfield
	str	x0, [sp, #56]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_getfield
	str	x0, [sp, #48]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #12
	mov	w3, #0
	bl	_getfield
	str	x0, [sp, #40]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w2, #-1
	mov	w3, #0
	bl	_getfield
	str	x0, [sp, #32]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w2, #-1
	mov	w3, #1
	bl	_getfield
	str	x0, [sp, #24]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w2, #-1
	mov	w3, #1900
	bl	_getfield
	str	x0, [sp, #16]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_getboolfield
	str	w0, [sp, #8]
	add	x0, sp, #8
	bl	_mktime
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_setallfields
	cmn	x20, #1
	b.ne	LBB0_2
LBB0_4:
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_luaL_error
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_TTABLE,4,2                 ; @LUA_TTABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sec"

l_.str.1:                               ; @.str.1
	.asciz	"min"

l_.str.2:                               ; @.str.2
	.asciz	"hour"

l_.str.3:                               ; @.str.3
	.asciz	"day"

l_.str.4:                               ; @.str.4
	.asciz	"month"

l_.str.5:                               ; @.str.5
	.asciz	"year"

l_.str.6:                               ; @.str.6
	.asciz	"isdst"

l_.str.7:                               ; @.str.7
	.asciz	"time result cannot be represented in this installation"

	.no_dead_strip	_os_time
.subsections_via_symbols
