	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setpause
_setpause:                              ## @setpause
	.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, %r14
	movl	(%rdi), %eax
	movq	_PAUSEADJ@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_lua_assert
	movl	4(%r14), %esi
	movq	_MAX_LMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%ebx
	imull	%esi, %ebx
	cmpl	%eax, %esi
	cmovgel	%ecx, %ebx
	movq	%r14, %rdi
	callq	_gettotalbytes
	subl	%ebx, %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_luaE_setdebt                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAUSEADJ,4,2                   ## @PAUSEADJ
	.comm	_MAX_LMEM,4,2                   ## @MAX_LMEM
	.no_dead_strip	_setpause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setpause
_setpause:                              ; @setpause
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PAUSEADJ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAUSEADJ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w20, w8, w9
	cmp	w20, #0
	cset	w0, gt
	bl	_lua_assert
Lloh3:
	adrp	x8, _MAX_LMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_LMEM@GOTPAGEOFF]
	ldr	w9, [x19, #4]
Lloh5:
	ldr	w8, [x8]
	sdiv	w10, w8, w20
	mul	w11, w9, w20
	cmp	w9, w10
	csel	w20, w11, w8, lt
	mov	x0, x19
	bl	_gettotalbytes
	sub	w1, w0, w20
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_luaE_setdebt
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAUSEADJ,4,2                   ; @PAUSEADJ
	.comm	_MAX_LMEM,4,2                   ; @MAX_LMEM
	.no_dead_strip	_setpause
.subsections_via_symbols
