	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkoption
_checkoption:                           ## @checkoption
	.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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_LUA_STRFTIMEOPTIONS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_7
## %bb.1:
	movl	%edx, %r13d
	testl	%edx, %edx
	jle	LBB0_7
## %bb.2:
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$124, %al
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r15d, %rcx
	movzbl	(%rbx,%rcx), %eax
	testb	%al, %al
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rcx, %rbx
	cmpl	%r13d, %ecx
	jle	LBB0_3
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_lua_pushfstring
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_luaL_argerror
LBB0_10:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movslq	%r15d, %rax
	movb	$0, (%rbx,%rax)
	addq	%rax, %r12
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_STRFTIMEOPTIONS,8,3        ## @LUA_STRFTIMEOPTIONS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid conversion specifier '%%%s'"

	.no_dead_strip	_checkoption
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkoption
_checkoption:                           ; @checkoption
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
Lloh0:
	adrp	x8, _LUA_STRFTIMEOPTIONS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUA_STRFTIMEOPTIONS@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldrb	w8, [x23]
	cmp	w8, #0
	ccmp	w2, #1, #8, ne
	b.ge	LBB0_3
LBB0_1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_lua_pushfstring
	mov	x2, x0
	mov	x0, x21
	mov	w1, #1
	bl	_luaL_argerror
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x20, x3
	mov	x22, x2
	mov	w24, #1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, w24, sxtw
	ldrb	w8, [x23]
	cmp	w8, #0
	ccmp	w24, w22, #0, ne
	b.gt	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #124
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_memcmp
	cbnz	x0, LBB0_5
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_memcpy
	sxtw	x8, w24
	strb	wzr, [x20, x8]
	add	x19, x19, x8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_STRFTIMEOPTIONS,8,3        ; @LUA_STRFTIMEOPTIONS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid conversion specifier '%%%s'"

	.no_dead_strip	_checkoption
.subsections_via_symbols
