	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function luaB_collectgarbage
_luaB_collectgarbage:                   ## @luaB_collectgarbage
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str.2(%rip), %rdx
	leaq	_luaB_collectgarbage.opts(%rip), %rcx
	movl	$1, %esi
	callq	_luaL_checkoption
	leaq	_luaB_collectgarbage.optsnum(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
	movq	%r15, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_luaL_optinteger
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_lua_gc
	movl	%eax, %r14d
	cmpl	$129, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$133, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$134, %ebx
	jne	LBB0_5
## %bb.3:
	movq	_LUA_GCCOUNTB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_lua_gc
                                        ## kill: def $eax killed $eax def $rax
	leal	1023(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$10, %esi
	addl	%r14d, %esi
	movq	%r15, %rdi
	callq	_lua_pushnumber
	jmp	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_lua_pushboolean
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_lua_pushinteger
LBB0_6:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @luaB_collectgarbage.opts
_luaB_collectgarbage.opts:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3
	.quad	L_.str.4
	.quad	L_.str.5
	.quad	L_.str.6
	.quad	L_.str.7
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stop"

L_.str.1:                               ## @.str.1
	.asciz	"restart"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"step"

L_.str.5:                               ## @.str.5
	.asciz	"setpause"

L_.str.6:                               ## @.str.6
	.asciz	"setstepmul"

L_.str.7:                               ## @.str.7
	.asciz	"isrunning"

	.section	__TEXT,__const
	.p2align	4                               ## @luaB_collectgarbage.optsnum
_luaB_collectgarbage.optsnum:
	.long	128                             ## 0x80
	.long	132                             ## 0x84
	.long	135                             ## 0x87
	.long	134                             ## 0x86
	.long	129                             ## 0x81
	.long	131                             ## 0x83
	.long	130                             ## 0x82
	.long	133                             ## 0x85

	.comm	_LUA_GCCOUNTB,4,2               ## @LUA_GCCOUNTB
	.no_dead_strip	_luaB_collectgarbage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function luaB_collectgarbage
_luaB_collectgarbage:                   ; @luaB_collectgarbage
	.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
	mov	x19, x0
Lloh0:
	adrp	x2, l_.str.2@PAGE
Lloh1:
	add	x2, x2, l_.str.2@PAGEOFF
Lloh2:
	adrp	x3, _luaB_collectgarbage.opts@PAGE
Lloh3:
	add	x3, x3, _luaB_collectgarbage.opts@PAGEOFF
	mov	w1, #1
	bl	_luaL_checkoption
Lloh4:
	adrp	x8, _luaB_collectgarbage.optsnum@PAGE
Lloh5:
	add	x8, x8, _luaB_collectgarbage.optsnum@PAGEOFF
	ldr	w21, [x8, x0, lsl #2]
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	bl	_luaL_optinteger
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_lua_gc
	mov	x20, x0
	cmp	w21, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w21, #133
	b.eq	LBB0_4
; %bb.2:
	cmp	w21, #134
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _LUA_GCCOUNTB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LUA_GCCOUNTB@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_lua_gc
	add	w8, w0, #1023
	cmp	w0, #0
	csel	w8, w8, w0, lt
	add	w1, w20, w8, asr #10
	mov	x0, x19
	bl	_lua_pushnumber
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_lua_pushboolean
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_lua_pushinteger
LBB0_6:
	mov	w0, #1
	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
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @luaB_collectgarbage.opts
_luaB_collectgarbage.opts:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stop"

l_.str.1:                               ; @.str.1
	.asciz	"restart"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"step"

l_.str.5:                               ; @.str.5
	.asciz	"setpause"

l_.str.6:                               ; @.str.6
	.asciz	"setstepmul"

l_.str.7:                               ; @.str.7
	.asciz	"isrunning"

	.section	__TEXT,__const
	.p2align	2                               ; @luaB_collectgarbage.optsnum
_luaB_collectgarbage.optsnum:
	.long	128                             ; 0x80
	.long	132                             ; 0x84
	.long	135                             ; 0x87
	.long	134                             ; 0x86
	.long	129                             ; 0x81
	.long	131                             ; 0x83
	.long	130                             ; 0x82
	.long	133                             ; 0x85

	.comm	_LUA_GCCOUNTB,4,2               ; @LUA_GCCOUNTB
	.no_dead_strip	_luaB_collectgarbage
.subsections_via_symbols
