	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memsize                        ## -- Begin function memsize
	.p2align	4, 0x90
_memsize:                               ## @memsize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$112, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_memory@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OF_instance_to_package
	leaq	L_.str(%rip), %rsi
	leaq	-112(%rbp), %rdx
	movl	%eax, %edi
	movl	$96, %ecx
	callq	_OF_getprop
	xorl	%ecx, %ecx
	cmpl	$4, %eax
	jl	LBB0_3
## %bb.1:
	sarl	$2, %eax
	movq	_scells@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_acells@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leal	(%rcx,%rsi), %r8d
	addl	%ecx, %esi
	decl	%esi
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%rdi), %edx
	movslq	%edx, %rdx
	addl	-112(%rbp,%rdx,4), %ecx
	addl	%r8d, %edi
	cmpl	%eax, %edi
	jl	LBB0_2
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ecx, %eax
	addq	$112, %rsp
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_memory,4,2                     ## @memory
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

	.comm	_scells,4,2                     ## @scells
	.comm	_acells,4,2                     ## @acells
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memsize                        ; -- Begin function memsize
	.p2align	2
_memsize:                               ; @memsize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _memory@GOTPAGE
Lloh4:
	ldr	x8, [x8, _memory@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_OF_instance_to_package
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x19, sp, #8
	add	x2, sp, #8
	mov	w3, #96
	bl	_OF_getprop
	cmp	w0, #4
	b.lt	LBB0_3
; %bb.1:
	mov	x8, x0
	mov	w9, #0
	mov	w0, #0
	asr	w8, w8, #2
Lloh8:
	adrp	x10, _scells@GOTPAGE
Lloh9:
	ldr	x10, [x10, _scells@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _acells@GOTPAGE
Lloh12:
	ldr	x11, [x11, _acells@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	add	w10, w10, w11
	sub	w11, w10, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w11, w9
	ldr	w12, [x19, w12, sxtw #2]
	add	w0, w12, w0
	add	w9, w9, w10
	cmp	w9, w8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldur	x8, [x29, #-24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_memory,4,2                     ; @memory
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

	.comm	_scells,4,2                     ; @scells
	.comm	_acells,4,2                     ; @acells
.subsections_via_symbols
