	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdx
	leaq	-80(%rbp), %rcx
	movl	$1, %esi
	callq	_luaL_optlstring
	movq	%rax, %rbx
	movq	_l_checktime@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%edi, %edi
	callq	_time
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$2, %edx
	movl	%eax, %ecx
	callq	_luaL_opt
	movl	%eax, -48(%rbp)
	movq	-80(%rbp), %r14
	addq	%rbx, %r14
	cmpb	$33, (%rbx)
	jne	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_l_gmtime
	movq	%rax, %r15
	incq	%rbx
	testq	%r15, %r15
	je	LBB0_4
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movb	$37, -52(%rbp)
	leaq	-44(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_luaL_buffinit
	cmpq	%r14, %rbx
	jae	LBB0_13
## %bb.8:
	leaq	-44(%rbp), %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_SIZETIMEFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_luaL_prepbuffsize
	movq	%rax, %r12
	incq	%rbx
	movl	%r14d, %edx
	subl	%ebx, %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	leaq	-51(%rbp), %rcx
	callq	_checkoption
	movq	%rax, %rbx
	movq	_SIZETIMEFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	leaq	-52(%rbp), %rdx
	movq	%r15, %rcx
	callq	_strftime
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_luaL_addsize
	cmpq	%r14, %rbx
	jae	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %esi
	cmpl	$37, %esi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movq	%r13, %rdi
	callq	_luaL_addchar
	cmpq	%r14, %rbx
	jb	LBB0_9
LBB0_13:
	leaq	-44(%rbp), %rdi
	callq	_luaL_pushresult
	jmp	LBB0_14
LBB0_2:
	leaq	-48(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_l_localtime
	movq	%rax, %r15
	testq	%r15, %r15
	jne	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_luaL_error
	jmp	LBB0_15
LBB0_6:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$9, %edx
	callq	_lua_createtable
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_setallfields
LBB0_14:
	movl	$1, %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%c"

	.comm	_l_checktime,4,2                ## @l_checktime
L_.str.1:                               ## @.str.1
	.asciz	"time result cannot be represented in this installation"

L_.str.2:                               ## @.str.2
	.asciz	"*t"

	.comm	_SIZETIMEFMT,4,2                ## @SIZETIMEFMT
	.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, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, sp, #24
	mov	w1, #1
	bl	_luaL_optlstring
	mov	x22, x0
Lloh2:
	adrp	x8, _l_checktime@GOTPAGE
Lloh3:
	ldr	x8, [x8, _l_checktime@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	mov	x0, #0
	bl	_time
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2
	bl	_luaL_opt
	str	w0, [sp, #20]
	ldr	x23, [sp, #24]
	ldrb	w8, [x22]
	add	x0, sp, #20
	add	x1, sp, #16
	cmp	w8, #33
	b.ne	LBB0_9
; %bb.1:
	bl	_l_gmtime
	mov	x20, x0
	add	x21, x22, #1
	cbz	x20, LBB0_10
LBB0_2:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.3:
	add	x24, x22, x23
	mov	w8, #37
	strb	w8, [sp, #12]
	add	x1, sp, #8
	mov	x0, x19
	bl	_luaL_buffinit
	cmp	x21, x24
	b.hs	LBB0_8
; %bb.4:
	add	x8, sp, #12
	add	x22, x8, #1
Lloh7:
	adrp	x25, _SIZETIMEFMT@GOTPAGE
Lloh8:
	ldr	x25, [x25, _SIZETIMEFMT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x25]
	add	x0, sp, #8
	bl	_luaL_prepbuffsize
	mov	x23, x0
	add	x1, x21, #1
	sub	w2, w24, w1
	mov	x0, x19
	mov	x3, x22
	bl	_checkoption
	mov	x21, x0
	ldr	w1, [x25]
	add	x2, sp, #12
	mov	x0, x23
	mov	x3, x20
	bl	_strftime
	mov	x1, x0
	add	x0, sp, #8
	bl	_luaL_addsize
	cmp	x21, x24
	b.hs	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w1, [x21]
	cmp	w1, #37
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	add	x0, sp, #8
	bl	_luaL_addchar
	cmp	x21, x24
	b.lo	LBB0_6
LBB0_8:
	add	x0, sp, #8
	bl	_luaL_pushresult
	b	LBB0_12
LBB0_9:
	bl	_l_localtime
	mov	x20, x0
	mov	x21, x22
	cbnz	x20, LBB0_2
LBB0_10:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_luaL_error
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #9
	bl	_lua_createtable
	mov	x0, x19
	mov	x1, x20
	bl	_setallfields
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%c"

	.comm	_l_checktime,4,2                ; @l_checktime
l_.str.1:                               ; @.str.1
	.asciz	"time result cannot be represented in this installation"

l_.str.2:                               ; @.str.2
	.asciz	"*t"

	.comm	_SIZETIMEFMT,4,2                ; @SIZETIMEFMT
	.no_dead_strip	_os_date
.subsections_via_symbols
