	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getfield
_getfield:                              ## @getfield
	.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
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$-1, %esi
	movq	%r14, %rdx
	callq	_lua_getfield
	movl	%eax, %r13d
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_lua_tointegerx
	cmpl	$0, -44(%rbp)
	je	LBB0_1
## %bb.6:
	movq	_L_MAXDATEFIELD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	negl	%edx
	cmpl	%edx, %eax
	jl	LBB0_8
## %bb.7:
	cmpl	%ecx, %eax
	jg	LBB0_8
## %bb.9:
	subl	%r12d, %eax
	movl	%eax, %r15d
	jmp	LBB0_10
LBB0_1:
	movq	_LUA_TNIL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_2
## %bb.4:
	testl	%r15d, %r15d
	js	LBB0_5
LBB0_10:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_pop
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_luaL_error
	movl	%eax, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_TNIL,4,2                   ## @LUA_TNIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"field '%s' is not an integer"

L_.str.1:                               ## @.str.1
	.asciz	"field '%s' missing in date table"

	.comm	_L_MAXDATEFIELD,4,2             ## @L_MAXDATEFIELD
L_.str.2:                               ## @.str.2
	.asciz	"field '%s' is out-of-bound"

	.no_dead_strip	_getfield
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getfield
_getfield:                              ; @getfield
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	w1, #-1
	mov	x2, x21
	bl	_lua_getfield
	mov	x23, x0
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #-1
	bl	_lua_tointegerx
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _L_MAXDATEFIELD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _L_MAXDATEFIELD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w9, w8
	cmp	w0, w9
	ccmp	w0, w8, #0, ge
	b.le	LBB0_6
; %bb.2:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_3:
Lloh5:
	adrp	x8, _LUA_TNIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LUA_TNIL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_8
; %bb.4:
	tbz	w19, #31, LBB0_7
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_6:
	sub	w19, w0, w22
LBB0_7:
	mov	x0, x20
	mov	w1, #1
	bl	_lua_pop
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
LBB0_9:
	mov	x0, x20
	mov	x2, x21
	bl	_luaL_error
	mov	x19, x0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_TNIL,4,2                   ; @LUA_TNIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"field '%s' is not an integer"

l_.str.1:                               ; @.str.1
	.asciz	"field '%s' missing in date table"

	.comm	_L_MAXDATEFIELD,4,2             ; @L_MAXDATEFIELD
l_.str.2:                               ; @.str.2
	.asciz	"field '%s' is out-of-bound"

	.no_dead_strip	_getfield
.subsections_via_symbols
