	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_metatable
_register_metatable:                    ## @register_metatable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_DIR_METATABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_luaL_newmetatable
	movq	%rbx, %rdi
	callq	_lua_newtable
	movq	_lua_dir_iter_next@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lua_pushcfunction
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_setfield
	movq	_lua_dir_iter_close@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_lua_pushcfunction
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_setfield
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_setfield
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_lua_pushcfunction
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_setfield
	movq	%rbx, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lua_pop                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DIR_METATABLE,4,2              ## @DIR_METATABLE
	.comm	_lua_dir_iter_next,4,2          ## @lua_dir_iter_next
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"next"

	.comm	_lua_dir_iter_close,4,2         ## @lua_dir_iter_close
L_.str.1:                               ## @.str.1
	.asciz	"close"

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

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

	.no_dead_strip	_register_metatable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_metatable
_register_metatable:                    ; @register_metatable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _DIR_METATABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIR_METATABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_luaL_newmetatable
	mov	x0, x19
	bl	_lua_newtable
Lloh3:
	adrp	x8, _lua_dir_iter_next@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lua_dir_iter_next@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lua_pushcfunction
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_setfield
Lloh8:
	adrp	x20, _lua_dir_iter_close@GOTPAGE
Lloh9:
	ldr	x20, [x20, _lua_dir_iter_close@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_lua_pushcfunction
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_setfield
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_setfield
	ldr	w1, [x20]
	mov	x0, x19
	bl	_lua_pushcfunction
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_setfield
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lua_pop
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DIR_METATABLE,4,2              ; @DIR_METATABLE
	.comm	_lua_dir_iter_next,4,2          ; @lua_dir_iter_next
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"next"

	.comm	_lua_dir_iter_close,4,2         ; @lua_dir_iter_close
l_.str.1:                               ; @.str.1
	.asciz	"close"

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

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

	.no_dead_strip	_register_metatable
.subsections_via_symbols
