	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lua_chassis_stats
_lua_chassis_stats:                     ## @lua_chassis_stats
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_FALSE@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	callq	_lua_gettop
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$1, %ebx
	jne	LBB0_31
## %bb.3:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_luaL_checkstring
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_lua_newtable
	movq	_LUA_REGISTRYINDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CHASSIS_LUA_REGISTRY_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_lua_getfield
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_lua_topointer
	movq	%rax, %r13
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_lua_pop
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.5:
	testq	%r13, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_10
## %bb.6:
	movl	(%r13), %edi
	callq	_chassis_stats_get
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_lua_newtable
	movq	_chassis_stats_setluaval@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_g_hash_table_foreach
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	$-2, %esi
	callq	_lua_setfield
	movq	%rbx, %rdi
	callq	_g_hash_table_destroy
	jmp	LBB0_9
LBB0_31:
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	$2, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_luaL_argerror                  ## TAILCALL
LBB0_7:
	movl	(%r12), %r14d
LBB0_9:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	testq	%r13, %r13
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_28
## %bb.11:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_28
## %bb.12:
	cmpq	$0, (%rax)
	je	LBB0_28
## %bb.13:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	callq	_lua_newtable
	movq	_chassis_stats_setluaval@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_g_hash_table_foreach
	movq	(%r14), %rdx
	movq	%r15, %rdi
	movl	$-2, %esi
	callq	_lua_setfield
	movq	%rbx, %rdi
	callq	_g_hash_table_destroy
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r12
	movq	8(%r13), %rax
	cmpq	(%rax), %r12
	jae	LBB0_28
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movq	(%rax,%r12,8), %r14
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	16(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_g_ascii_strcasecmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.25:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_g_ascii_strcasecmp
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_26
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	callq	*%rcx
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_19
LBB0_22:
	movl	(%r13), %edi
	callq	_chassis_stats_get
	testq	%rax, %rax
	jne	LBB0_27
LBB0_24:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_28
LBB0_26:
	movq	8(%r14), %rdi
	callq	*16(%r14)
	testq	%rax, %rax
	je	LBB0_24
LBB0_27:
	movq	%rax, %rbx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_chassis_stats_setluaval@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_g_hash_table_foreach
	movq	%rbx, %rdi
	callq	_g_hash_table_destroy
LBB0_28:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_30
## %bb.29:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_lua_pop
	movq	%r15, %rdi
	callq	_lua_pushnil
LBB0_30:
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"currently only zero or one arguments are allowed"

	.comm	_LUA_REGISTRYINDEX,4,2          ## @LUA_REGISTRYINDEX
	.comm	_CHASSIS_LUA_REGISTRY_KEY,4,2   ## @CHASSIS_LUA_REGISTRY_KEY
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_chassis_stats_setluaval,4,2    ## @chassis_stats_setluaval
L_.str.1:                               ## @.str.1
	.asciz	"chassis"

	.no_dead_strip	_lua_chassis_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lua_chassis_stats
_lua_chassis_stats:                     ; @lua_chassis_stats
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x25, _FALSE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	ldr	w24, [x25]
	bl	_lua_gettop
	mov	x22, x0
	cbz	w0, LBB0_3
; %bb.1:
	cmp	w22, #1
	b.ne	LBB0_21
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_luaL_checkstring
	mov	x20, x0
	b	LBB0_4
LBB0_3:
	mov	x20, #0
LBB0_4:
	mov	x0, x19
	bl	_lua_newtable
Lloh2:
	adrp	x8, _LUA_REGISTRYINDEX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LUA_REGISTRYINDEX@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _CHASSIS_LUA_REGISTRY_KEY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHASSIS_LUA_REGISTRY_KEY@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_lua_getfield
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_topointer
	mov	x21, x0
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pop
	cbnz	w22, LBB0_8
; %bb.5:
	cbz	x21, LBB0_8
; %bb.6:
	ldr	w0, [x21]
	bl	_chassis_stats_get
	cbz	x0, LBB0_22
; %bb.7:
	mov	x22, x0
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_lua_newtable
Lloh11:
	adrp	x8, _chassis_stats_setluaval@GOTPAGE
Lloh12:
	ldr	x8, [x8, _chassis_stats_setluaval@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x19
	bl	_g_hash_table_foreach
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_setfield
	mov	x0, x22
	bl	_g_hash_table_destroy
LBB0_8:
	cbz	x21, LBB0_23
LBB0_9:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_23
; %bb.10:
	ldr	x9, [x8]
	cbz	x9, LBB0_23
; %bb.11:
	mov	x28, #0
Lloh16:
	adrp	x27, _TRUE@GOTPAGE
Lloh17:
	ldr	x27, [x27, _TRUE@GOTPAGEOFF]
Lloh18:
	adrp	x22, l_.str.1@PAGE
Lloh19:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	blr	x8
	mov	x23, x0
	ldr	w8, [x27]
	cmp	x0, #0
	csel	w24, w24, w8, eq
	mov	x0, x19
	bl	_lua_newtable
Lloh20:
	adrp	x8, _chassis_stats_setluaval@GOTPAGE
Lloh21:
	ldr	x8, [x8, _chassis_stats_setluaval@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x19
	bl	_g_hash_table_foreach
	ldr	x2, [x26]
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_setfield
	mov	x0, x23
	bl	_g_hash_table_destroy
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x28, x28, #1
	ldr	x8, [x21, #8]
	ldr	x9, [x8]
	cmp	x28, x9
	b.hs	LBB0_23
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	x26, [x8, x28, lsl #3]
	ldr	x0, [x26, #8]
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x26, #16]
	cbz	x8, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	cbz	x20, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_g_ascii_strcasecmp
	cbz	x0, LBB0_26
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x1, [x26]
	mov	x0, x20
	bl	_g_ascii_strcasecmp
	cbnz	x0, LBB0_13
; %bb.19:
	ldp	x0, x8, [x26, #8]
	blr	x8
	cbz	x0, LBB0_27
LBB0_20:
	mov	x20, x0
	ldr	w24, [x27]
Lloh23:
	adrp	x8, _chassis_stats_setluaval@GOTPAGE
Lloh24:
	ldr	x8, [x8, _chassis_stats_setluaval@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_g_hash_table_foreach
	mov	x0, x20
	bl	_g_hash_table_destroy
	b	LBB0_23
LBB0_21:
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #2
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_luaL_argerror
LBB0_22:
	ldr	w24, [x25]
	cbnz	x21, LBB0_9
LBB0_23:
	cbnz	w24, LBB0_25
LBB0_24:
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pop
	mov	x0, x19
	bl	_lua_pushnil
LBB0_25:
	mov	w0, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	ldr	w0, [x21]
	bl	_chassis_stats_get
	cbnz	x0, LBB0_20
LBB0_27:
	ldr	w24, [x25]
	cbnz	w24, LBB0_25
	b	LBB0_24
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"currently only zero or one arguments are allowed"

	.comm	_LUA_REGISTRYINDEX,4,2          ; @LUA_REGISTRYINDEX
	.comm	_CHASSIS_LUA_REGISTRY_KEY,4,2   ; @CHASSIS_LUA_REGISTRY_KEY
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_chassis_stats_setluaval,4,2    ; @chassis_stats_setluaval
l_.str.1:                               ; @.str.1
	.asciz	"chassis"

	.no_dead_strip	_lua_chassis_stats
.subsections_via_symbols
