	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function os_date
_os_date:                               ## @os_date
	.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
	subq	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_luaL_optstring
	movq	%rax, %rbx
	movq	_luaL_checknumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%edi, %edi
	callq	_time
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$2, %edx
	movl	%eax, %ecx
	callq	_luaL_opt
	movl	%eax, -264(%rbp)
	cmpb	$33, (%rbx)
	jne	LBB0_2
## %bb.1:
	leaq	-264(%rbp), %rdi
	callq	_gmtime
	movq	%rax, %r15
	incq	%rbx
	testq	%r15, %r15
	je	LBB0_4
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movb	$37, -259(%rbp)
	movb	$0, -257(%rbp)
	leaq	-268(%rbp), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_luaL_buffinit
	leaq	-256(%rbp), %r14
	leaq	-259(%rbp), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	testb	%al, %al
	je	LBB0_10
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_luaL_addchar
	incq	%rbx
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$37, %al
	jne	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movzbl	1(%rbx), %ecx
	testb	%cl, %cl
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movb	%cl, -258(%rbp)
	movq	%r14, %rdi
	movl	$200, %esi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_strftime
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_luaL_addlstring
	incq	%rbx
	jmp	LBB0_8
LBB0_2:
	leaq	-264(%rbp), %rdi
	callq	_localtime
	movq	%rax, %r15
	testq	%r15, %r15
	jne	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_lua_pushnil
	jmp	LBB0_11
LBB0_10:
	leaq	-268(%rbp), %rdi
	callq	_luaL_pushresult
	jmp	LBB0_11
LBB0_6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$9, %edx
	callq	_lua_createtable
	movq	64(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_setfield
	movq	56(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_setfield
	movq	48(%r15), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_setfield
	movq	40(%r15), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_setfield
	movq	32(%r15), %rdx
	incq	%rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_setfield
	movl	$1900, %edx                     ## imm = 0x76C
	addq	24(%r15), %rdx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_setfield
	movq	16(%r15), %rdx
	incq	%rdx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_setfield
	movq	8(%r15), %rdx
	incq	%rdx
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_setfield
	movl	(%r15), %edx
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_setboolfield
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.16:
	movl	$1, %eax
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%c"

	.comm	_luaL_checknumber,8,3           ## @luaL_checknumber
L_.str.1:                               ## @.str.1
	.asciz	"*t"

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

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

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

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

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

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

L_.str.8:                               ## @.str.8
	.asciz	"wday"

L_.str.9:                               ## @.str.9
	.asciz	"yday"

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

	.no_dead_strip	_os_date
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function os_date
_os_date:                               ; @os_date
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_luaL_optstring
	mov	x21, x0
Lloh5:
	adrp	x8, _luaL_checknumber@GOTPAGE
Lloh6:
	ldr	x8, [x8, _luaL_checknumber@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	mov	x0, #0
	bl	_time
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	w2, #2
	bl	_luaL_opt
	str	w0, [sp, #12]
	ldrb	w8, [x21]
	add	x0, sp, #12
	cmp	w8, #33
	b.ne	LBB0_9
; %bb.1:
	bl	_gmtime
	mov	x19, x0
	add	x21, x21, #1
	cbz	x19, LBB0_10
LBB0_2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.3:
	mov	w8, #37
	strb	w8, [sp, #9]
	strb	wzr, [sp, #11]
	add	x1, sp, #4
	mov	x0, x20
	bl	_luaL_buffinit
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbz	w8, LBB0_11
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sxtb	w1, w8
	add	x0, sp, #4
	bl	_luaL_addchar
	add	x21, x21, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	cmp	w8, #37
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x21
	ldrb	w9, [x20, #1]!
	cbz	w9, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	strb	w9, [sp, #10]
	add	x0, sp, #16
	add	x2, sp, #9
	mov	w1, #200
	mov	x3, x19
	bl	_strftime
	mov	x2, x0
	add	x0, sp, #4
	add	x1, sp, #16
	bl	_luaL_addlstring
	mov	x21, x20
	add	x21, x20, #1
	b	LBB0_6
LBB0_9:
	bl	_localtime
	mov	x19, x0
	cbnz	x19, LBB0_2
LBB0_10:
	mov	x0, x20
	bl	_lua_pushnil
	b	LBB0_13
LBB0_11:
	add	x0, sp, #4
	bl	_luaL_pushresult
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #9
	bl	_lua_createtable
	ldr	x2, [x19, #64]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_setfield
	ldr	x2, [x19, #56]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_setfield
	ldr	x2, [x19, #48]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_setfield
	ldr	x2, [x19, #40]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_setfield
	ldr	x8, [x19, #32]
	add	x2, x8, #1
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_setfield
	ldr	x8, [x19, #24]
	add	x2, x8, #1900
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_setfield
	ldr	x8, [x19, #16]
	add	x2, x8, #1
Lloh22:
	adrp	x1, l_.str.8@PAGE
Lloh23:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_setfield
	ldr	x8, [x19, #8]
	add	x2, x8, #1
Lloh24:
	adrp	x1, l_.str.9@PAGE
Lloh25:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_setfield
	ldr	w2, [x19]
Lloh26:
	adrp	x1, l_.str.10@PAGE
Lloh27:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_setboolfield
LBB0_13:
	ldur	x8, [x29, #-40]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	w0, #1
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%c"

	.comm	_luaL_checknumber,8,3           ; @luaL_checknumber
l_.str.1:                               ; @.str.1
	.asciz	"*t"

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

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

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

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

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

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

l_.str.8:                               ; @.str.8
	.asciz	"wday"

l_.str.9:                               ; @.str.9
	.asciz	"yday"

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

	.no_dead_strip	_os_date
.subsections_via_symbols
