	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function findfield
_findfield:                             ## @findfield
	.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
	xorl	%r14d, %r14d
	testl	%edx, %edx
	je	LBB0_10
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	$-1, %esi
	callq	_lua_istable
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movq	%rbx, %rdi
	callq	_lua_pushnil
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_next
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	decl	%r15d
	movq	_LUA_TSTRING@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_pop
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_next
	testq	%rax, %rax
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_type
	cmpq	(%r13), %rax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$-1, %edx
	callq	_lua_rawequal
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_findfield
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_remove
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_lua_pushliteral
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_insert
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_lua_concat
	movl	$1, %r14d
	jmp	LBB0_10
LBB0_6:
	movl	$1, %r14d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_pop
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_TSTRING,8,3                ## @LUA_TSTRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.no_dead_strip	_findfield
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function findfield
_findfield:                             ; @findfield
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	w2, LBB0_9
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w1, #-1
	bl	_lua_istable
	cbz	w0, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_lua_pushnil
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_next
	cbz	x0, LBB0_9
; %bb.3:
	sub	w21, w21, #1
Lloh0:
	adrp	x22, _LUA_TSTRING@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LUA_TSTRING@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pop
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_next
	cbz	x0, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_type
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #-1
	bl	_lua_rawequal
	cbnz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_findfield
	cbz	w0, LBB0_4
; %bb.8:
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_remove
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_lua_pushliteral
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_insert
	mov	x0, x19
	mov	w1, #3
	bl	_lua_concat
	mov	w20, #1
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pop
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_TSTRING,8,3                ; @LUA_TSTRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.no_dead_strip	_findfield
.subsections_via_symbols
