	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function packint
_packint:                               ## @packint
	.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
	movl	%r8d, %r12d
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%ecx, %esi
	callq	_luaL_prepbuffsize
	movq	_MC@GOTPCREL(%rip), %r9
	movl	(%r9), %ecx
	andl	%ebx, %ecx
	leal	-1(%r14), %r8d
	xorl	%edx, %edx
	testl	%r13d, %r13d
	cmovel	%r8d, %edx
	movslq	%edx, %rdx
	movb	%cl, (%rax,%rdx)
	cmpl	$2, %r14d
	jl	LBB0_7
## %bb.1:
	movl	$1, %edi
	je	LBB0_5
## %bb.2:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r8d, %r11d
	andl	$-2, %r11d
	leal	-3(%r14), %edx
	movl	$1, %edi
	movq	_NB@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r10), %ecx
	sarl	%cl, %ebx
	movl	(%r9), %ecx
	andl	%ebx, %ecx
	leal	1(%rdx), %esi
	leal	1(%rdi), %r12d
	testl	%r13d, %r13d
	cmovnel	%edi, %esi
	movslq	%esi, %rsi
	movb	%cl, (%rax,%rsi)
	movl	%r12d, %esi
	cmovel	%edx, %esi
	movzbl	(%r10), %ecx
	sarl	%cl, %ebx
	movl	(%r9), %ecx
	andl	%ebx, %ecx
	movslq	%esi, %rsi
	movb	%cl, (%rax,%rsi)
	addl	$2, %edi
	addl	$-2, %edx
	cmpl	%r11d, %r12d
	jne	LBB0_3
## %bb.4:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_5:
	testb	$1, %r8b
	je	LBB0_7
## %bb.6:
	movq	_NB@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	andl	(%r9), %ebx
	movl	%r8d, %ecx
	subl	%edi, %ecx
	testl	%r13d, %r13d
	cmovnel	%edi, %ecx
	movslq	%ecx, %rcx
	movb	%bl, (%rax,%rcx)
LBB0_7:
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.8:
	movq	_SZINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%r14d, %ecx
	jge	LBB0_14
## %bb.9:
	movl	%r14d, %esi
	subl	%ecx, %esi
	movl	%ecx, %edx
	notl	%edx
	testb	$1, %sil
	je	LBB0_11
## %bb.10:
	subl	%ecx, %r8d
	testl	%r13d, %r13d
	cmovnel	%ecx, %r8d
	movb	(%r9), %bl
	movslq	%r8d, %rsi
	movb	%bl, (%rax,%rsi)
	incl	%ecx
LBB0_11:
	addl	%r14d, %edx
	je	LBB0_14
## %bb.12:
	movl	%ecx, %edx
	notl	%edx
	addl	%r14d, %edx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%rdx), %r8d
	leal	1(%rcx), %edi
	testl	%r13d, %r13d
	movzbl	(%r9), %ebx
	movl	%ecx, %esi
	cmovel	%edx, %esi
	movslq	%esi, %rsi
	movb	%bl, (%rax,%rsi)
	movzbl	(%r9), %ebx
	cmovel	%r8d, %edi
	movslq	%edi, %rsi
	movb	%bl, (%rax,%rsi)
	addl	$-2, %edx
	addl	$2, %ecx
	cmpl	%r14d, %ecx
	jne	LBB0_13
LBB0_14:
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_luaL_addsize                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MC,4,2                         ## @MC
	.comm	_NB,4,2                         ## @NB
	.comm	_SZINT,4,2                      ## @SZINT
	.no_dead_strip	_packint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function packint
_packint:                               ; @packint
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	mov	x1, x3
	bl	_luaL_prepbuffsize
Lloh0:
	adrp	x8, _MC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MC@GOTPAGEOFF]
	ldr	w9, [x8]
	and	w9, w9, w23
	sub	w10, w19, #1
	cmp	w20, #0
	csel	w10, w10, wzr, eq
	strb	w9, [x0, w10, sxtw]
	subs	w9, w19, #2
	b.lt	LBB0_3
; %bb.1:
	mov	w10, #1
Lloh2:
	adrp	x11, _NB@GOTPAGE
Lloh3:
	ldr	x11, [x11, _NB@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	asr	w23, w23, w12
	ldr	w12, [x8]
	and	w12, w23, w12
	cmp	w20, #0
	csel	w13, w9, w10, eq
	strb	w12, [x0, w13, sxtw]
	add	w10, w10, #1
	sub	w9, w9, #1
	cmn	w9, #1
	b.ne	LBB0_2
LBB0_3:
	cbz	w22, LBB0_7
; %bb.4:
Lloh4:
	adrp	x9, _SZINT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SZINT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w9, w19
	b.ge	LBB0_7
; %bb.5:
	mvn	w10, w9
	add	w10, w10, w19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	cmp	w20, #0
	csel	w12, w10, w9, eq
	strb	w11, [x0, w12, sxtw]
	add	w9, w9, #1
	sub	w10, w10, #1
	cmn	w10, #1
	b.ne	LBB0_6
LBB0_7:
	mov	x0, x21
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_luaL_addsize
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MC,4,2                         ; @MC
	.comm	_NB,4,2                         ; @NB
	.comm	_SZINT,4,2                      ; @SZINT
	.no_dead_strip	_packint
.subsections_via_symbols
