	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sb_memory                      ## -- Begin function sb_memory
	.p2align	4, 0x90
_sb_memory:                             ## @sb_memory
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_dyn_update_stats
	movq	_dyn_cur@GOTPCREL(%rip), %rax
	movq	_dyn_first@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_dyn_last@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_dyn_top@GOTPCREL(%rip), %rdi
	movq	(%rax), %rdx
	addq	%rcx, %rdx
	subq	%rsi, %rcx
	addq	(%rdi), %rsi
	subq	%rsi, %rdx
	movq	_wasted_blocks@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_wasted_bytes@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_freed_blocks@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_freed_bytes@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_sb_printf
	addq	$16, %rsp
	movq	_AM_GET_MEMORY_USAGE_SELF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r15d, %esi
	leaq	-48(%rbp), %rdi
	callq	_am_get_memory_stats
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movslq	-28(%rbp), %rdx
	movslq	-32(%rbp), %rcx
	movl	-36(%rbp), %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_sb_printf
LBB0_2:
	movq	_AM_GET_MEMORY_USAGE_OVERALL@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	leaq	-48(%rbp), %rdi
	movl	%r15d, %esi
	callq	_am_get_memory_stats
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movslq	-40(%rbp), %rdx
	movslq	-44(%rbp), %rcx
	movl	-48(%rbp), %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_sb_printf
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"heap_allocated\t%ld\nheap_max\t%ld\nwasted_heap_blocks\t%d\nwasted_heap_bytes\t%ld\nfree_heap_blocks\t%d\nfree_heap_bytes\t%ld\n"

	.comm	_dyn_cur,8,3                    ## @dyn_cur
	.comm	_dyn_first,8,3                  ## @dyn_first
	.comm	_dyn_last,8,3                   ## @dyn_last
	.comm	_dyn_top,8,3                    ## @dyn_top
	.comm	_wasted_blocks,4,2              ## @wasted_blocks
	.comm	_wasted_bytes,4,2               ## @wasted_bytes
	.comm	_freed_blocks,4,2               ## @freed_blocks
	.comm	_freed_bytes,4,2                ## @freed_bytes
	.comm	_AM_GET_MEMORY_USAGE_SELF,4,2   ## @AM_GET_MEMORY_USAGE_SELF
L_.str.1:                               ## @.str.1
	.asciz	"vmsize_bytes\t%lld\nvmrss_bytes\t%lld\nvmdata_bytes\t%lld\n"

	.comm	_AM_GET_MEMORY_USAGE_OVERALL,4,2 ## @AM_GET_MEMORY_USAGE_OVERALL
L_.str.2:                               ## @.str.2
	.asciz	"memfree_bytes\t%lld\nswap_used_bytes\t%lld\nswap_total_bytes\t%lld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sb_memory                      ; -- Begin function sb_memory
	.p2align	2
_sb_memory:                             ; @sb_memory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_dyn_update_stats
Lloh0:
	adrp	x8, _dyn_cur@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dyn_cur@GOTPAGEOFF]
Lloh2:
	adrp	x9, _dyn_first@GOTPAGE
Lloh3:
	ldr	x9, [x9, _dyn_first@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _dyn_last@GOTPAGE
Lloh7:
	ldr	x10, [x10, _dyn_last@GOTPAGEOFF]
Lloh8:
	adrp	x11, _dyn_top@GOTPAGE
Lloh9:
	ldr	x11, [x11, _dyn_top@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	ldr	x11, [x11]
	add	x8, x8, x10
	add	x11, x9, x11
	sub	x2, x8, x11
	sub	x3, x10, x9
Lloh12:
	adrp	x8, _wasted_blocks@GOTPAGE
Lloh13:
	ldr	x8, [x8, _wasted_blocks@GOTPAGEOFF]
Lloh14:
	adrp	x9, _wasted_bytes@GOTPAGE
Lloh15:
	ldr	x9, [x9, _wasted_bytes@GOTPAGEOFF]
Lloh16:
	adrp	x10, _freed_blocks@GOTPAGE
Lloh17:
	ldr	x10, [x10, _freed_blocks@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
Lloh19:
	adrp	x8, _freed_bytes@GOTPAGE
Lloh20:
	ldr	x8, [x8, _freed_bytes@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	ldr	w10, [x10]
Lloh23:
	ldr	w8, [x8]
	stp	x10, x8, [sp, #8]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	str	x9, [sp]
	mov	x0, x19
	bl	_sb_printf
Lloh26:
	adrp	x8, _AM_GET_MEMORY_USAGE_SELF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AM_GET_MEMORY_USAGE_SELF@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	and	w1, w8, w20
	add	x0, sp, #24
	bl	_am_get_memory_stats
	cbnz	w0, LBB0_2
; %bb.1:
	ldpsw	x3, x2, [sp, #40]
	ldr	w4, [sp, #36]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sb_printf
LBB0_2:
Lloh31:
	adrp	x8, _AM_GET_MEMORY_USAGE_OVERALL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AM_GET_MEMORY_USAGE_OVERALL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	and	w1, w8, w20
	add	x0, sp, #24
	bl	_am_get_memory_stats
	cbnz	w0, LBB0_4
; %bb.3:
	ldpsw	x3, x2, [sp, #28]
	ldr	w4, [sp, #24]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_sb_printf
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh22
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh21
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh18
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"heap_allocated\t%ld\nheap_max\t%ld\nwasted_heap_blocks\t%d\nwasted_heap_bytes\t%ld\nfree_heap_blocks\t%d\nfree_heap_bytes\t%ld\n"

	.comm	_dyn_cur,8,3                    ; @dyn_cur
	.comm	_dyn_first,8,3                  ; @dyn_first
	.comm	_dyn_last,8,3                   ; @dyn_last
	.comm	_dyn_top,8,3                    ; @dyn_top
	.comm	_wasted_blocks,4,2              ; @wasted_blocks
	.comm	_wasted_bytes,4,2               ; @wasted_bytes
	.comm	_freed_blocks,4,2               ; @freed_blocks
	.comm	_freed_bytes,4,2                ; @freed_bytes
	.comm	_AM_GET_MEMORY_USAGE_SELF,4,2   ; @AM_GET_MEMORY_USAGE_SELF
l_.str.1:                               ; @.str.1
	.asciz	"vmsize_bytes\t%lld\nvmrss_bytes\t%lld\nvmdata_bytes\t%lld\n"

	.comm	_AM_GET_MEMORY_USAGE_OVERALL,4,2 ; @AM_GET_MEMORY_USAGE_OVERALL
l_.str.2:                               ; @.str.2
	.asciz	"memfree_bytes\t%lld\nswap_used_bytes\t%lld\nswap_total_bytes\t%lld\n"

.subsections_via_symbols
