	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meminfo
_meminfo:                               ## @meminfo
	.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
	movq	_MR_ATTR_DRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MR_ATTR_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_MR_ATTR_SRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_ub_get_sys_info
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_2:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_memsize
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_ub_mem_type
	shrl	$20, %ebx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_printf
LBB0_4:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_memsize
	testl	%eax, %eax
	jle	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_ub_mem_type
	shrl	$20, %ebx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_printf
LBB0_6:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_memsize
	testl	%eax, %eax
	jle	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_ub_mem_type
	shrl	$20, %ebx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MR_ATTR_DRAM,4,2               ## @MR_ATTR_DRAM
	.comm	_MR_ATTR_FLASH,4,2              ## @MR_ATTR_FLASH
	.comm	_MR_ATTR_SRAM,4,2               ## @MR_ATTR_SRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not retrieve system info"

L_.str.1:                               ## @.str.1
	.asciz	"%s: %juMB\n"

	.no_dead_strip	_meminfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meminfo
_meminfo:                               ; @meminfo
	.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
Lloh0:
	adrp	x8, _MR_ATTR_DRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MR_ATTR_DRAM@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _MR_ATTR_FLASH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MR_ATTR_FLASH@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _MR_ATTR_SRAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MR_ATTR_SRAM@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
	bl	_ub_get_sys_info
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_2:
	mov	x0, x20
	mov	x1, x22
	bl	_memsize
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x23, x0
	mov	x0, x22
	bl	_ub_mem_type
	mov	x1, x0
	lsr	w2, w23, #20
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_memsize
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.5:
	mov	x22, x0
	mov	x0, x21
	bl	_ub_mem_type
	mov	x1, x0
	lsr	w2, w22, #20
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_memsize
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.7:
	mov	x20, x0
	mov	x0, x19
	bl	_ub_mem_type
	mov	x1, x0
	lsr	w2, w20, #20
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	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	_printf
LBB0_8:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MR_ATTR_DRAM,4,2               ; @MR_ATTR_DRAM
	.comm	_MR_ATTR_FLASH,4,2              ; @MR_ATTR_FLASH
	.comm	_MR_ATTR_SRAM,4,2               ; @MR_ATTR_SRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not retrieve system info"

l_.str.1:                               ; @.str.1
	.asciz	"%s: %juMB\n"

	.no_dead_strip	_meminfo
.subsections_via_symbols
