	.file	"extr_main.c_memsize.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"reg"
	.text
	.p2align 4
	.globl	memsize
	.type	memsize, @function
memsize:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	sub	rsp, 112
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR memory[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	rbx, rsp
	call	OF_instance_to_package@PLT
	mov	ecx, 96
	mov	rdx, rbx
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	OF_getprop@PLT
	cdqe
	shr	rax, 2
	test	eax, eax
	jle	.L5
	mov	esi, DWORD PTR acells[rip]
	add	esi, DWORD PTR scells[rip]
	mov	edi, eax
	xor	r8d, r8d
	movsx	rcx, esi
	xor	eax, eax
	sal	rcx, 2
	lea	rdx, -4[rbx+rcx]
	.p2align 4,,10
	.p2align 3
.L3:
	add	eax, esi
	add	r8d, DWORD PTR [rdx]
	add	rdx, rcx
	cmp	edi, eax
	jg	.L3
.L1:
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 112
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	r8d, r8d
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	memsize, .-memsize
	.comm	scells,4,4
	.comm	memory,4,4
	.comm	acells,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_main.c_memsize.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"reg\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	memsize
	.syntax unified
	.arm
	.fpu softvfp
	.type	memsize, %function
memsize:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	ldr	r3, .L10
	sub	sp, sp, #108
	ldr	r0, [r3]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	str	r3, [sp, #100]
	mov	r3,#0
	bl	OF_instance_to_package
	mov	r3, #96
	ldr	r1, .L10+8
	add	r2, sp, #4
	bl	OF_getprop
	lsrs	ip, r0, #2
	beq	.L5
	mov	r0, #0
	mov	r3, r0
	ldr	r1, .L10+12
	ldr	r2, .L10+16
	ldr	lr, [r1]
	ldr	r2, [r2]
	add	lr, lr, r2
	add	r2, sp, #4
	add	r1, r2, lr, lsl #2
	sub	r1, r1, #4
.L3:
	ldr	r2, [r1, r3, lsl #2]
	add	r3, r3, lr
	cmp	ip, r3
	add	r0, r0, r2
	bgt	.L3
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #100]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #108
	@ sp needed
	ldr	pc, [sp], #4
.L5:
	mov	r0, ip
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	memory
	.word	.LC1
	.word	.LC0
	.word	scells
	.word	acells
	.size	memsize, .-memsize
	.comm	scells,4,4
	.comm	memory,4,4
	.comm	acells,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
