	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaS_newudata                  ## -- Begin function luaS_newudata
	.p2align	4, 0x90
_luaS_newudata:                         ## @luaS_newudata
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$-16, %rax
	cmpq	%rsi, %rax
	jae	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_luaM_toobig
LBB0_2:
	movq	_LUA_TUSERDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_sizeludata
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_luaC_newobj
	movq	%rax, %rdi
	callq	_gco2u
	movq	%rax, %rbx
	movq	%r12, (%rax)
	movq	$0, 8(%rax)
	movq	_luaO_nilobject@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_setuservalue
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.comm	_LUA_TUSERDATA,4,2              ## @LUA_TUSERDATA
	.comm	_luaO_nilobject,4,2             ## @luaO_nilobject
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaS_newudata                  ; -- Begin function luaS_newudata
	.p2align	2
_luaS_newudata:                         ; @luaS_newudata
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	sub	x8, x8, #16
	cmp	x8, x1
	b.hs	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_luaM_toobig
LBB0_2:
Lloh3:
	adrp	x8, _LUA_TUSERDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LUA_TUSERDATA@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_sizeludata
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_luaC_newobj
	bl	_gco2u
	mov	x21, x0
	stp	x20, xzr, [x0]
Lloh6:
	adrp	x8, _luaO_nilobject@GOTPAGE
Lloh7:
	ldr	x8, [x8, _luaO_nilobject@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_setuservalue
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.comm	_LUA_TUSERDATA,4,2              ; @LUA_TUSERDATA
	.comm	_luaO_nilobject,4,2             ; @luaO_nilobject
.subsections_via_symbols
