	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_am_get_memory_stats            ## -- Begin function am_get_memory_stats
	.p2align	4, 0x90
_am_get_memory_stats:                   ## @am_get_memory_stats
	.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
	movl	$16552, %eax                    ## imm = 0x40A8
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%esi, %esi
	je	LBB0_20
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_AM_GET_MEMORY_USAGE_SELF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_getpid
	leaq	-96(%rbp), %rsi
	movl	%eax, %edi
	movl	$6, %edx
	callq	_am_get_memory_usage
	testq	%rax, %rax
	js	LBB0_20
## %bb.3:
	movaps	-96(%rbp), %xmm0
	movups	%xmm0, (%r15)
	movq	-56(%rbp), %rax
	movq	%rax, 16(%r15)
LBB0_4:
	movq	_AM_GET_MEMORY_USAGE_OVERALL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_21
## %bb.5:
	leaq	L_.str(%rip), %rdi
	leaq	-16480(%rbp), %rsi
	movl	$16384, %edx                    ## imm = 0x4000
	callq	_read_whole_file
	testq	%rax, %rax
	js	LBB0_20
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	leaq	-16480(%rbp), %rbx
	movl	$4, %edi
	movq	%rbx, %rdx
	callq	_vkprintf
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strtok
	testq	%rax, %rax
	je	LBB0_20
## %bb.7:
	leaq	40(%r15), %rcx
	movq	%rcx, -16560(%rbp)              ## 8-byte Spill
	leaq	32(%r15), %rcx
	movq	%rcx, -16576(%rbp)              ## 8-byte Spill
	movq	%r15, -16568(%rbp)              ## 8-byte Spill
	leaq	24(%r15), %rcx
	movq	%rcx, -16584(%rbp)              ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -16552(%rbp)              ## 8-byte Spill
	leaq	L_.str.3(%rip), %r15
	leaq	-16512(%rbp), %r12
	leaq	-16592(%rbp), %r13
	leaq	-16544(%rbp), %rbx
	leaq	L_.str.2(%rip), %r14
	jmp	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %eax
	movq	-16584(%rbp), %rcx              ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-16592(%rbp), %rdx
	shlq	$10, %rdx
	movq	%rdx, (%rcx)
	movq	-16552(%rbp), %rcx              ## 8-byte Reload
	orl	%eax, %ecx
	movq	%rcx, -16552(%rbp)              ## 8-byte Spill
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_strtok
	testq	%rax, %rax
	je	LBB0_18
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	%rbx, %r8
	callq	_sscanf
	cmpl	$3, %eax
	jne	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-16544(%rbp), %eax
	movl	$17003, %ecx                    ## imm = 0x426B
	xorl	%ecx, %eax
	movzbl	-16542(%rbp), %ecx
	orw	%ax, %cx
	jne	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-16512(%rbp), %rax
	movabsq	$4207880968329848141, %rcx      ## imm = 0x3A656572466D654D
	xorq	%rcx, %rax
	movzbl	-16504(%rbp), %ecx
	orq	%rax, %rcx
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-16512(%rbp), %rax
	movabsq	$7022360127430817619, %rcx      ## imm = 0x61746F5470617753
	xorq	%rcx, %rax
	movq	-16509(%rbp), %rcx
	movabsq	$16444714470298736, %rdx        ## imm = 0x3A6C61746F5470
	xorq	%rdx, %rcx
	orq	%rax, %rcx
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-16512(%rbp), %rax
	movabsq	$7306371617337210707, %rcx      ## imm = 0x6565724670617753
	xorq	%rcx, %rax
	movzwl	-16504(%rbp), %ecx
	xorq	$58, %rcx
	orq	%rax, %rcx
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$4, %eax
	movq	-16560(%rbp), %rcx              ## 8-byte Reload
	jmp	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$2, %eax
	movq	-16576(%rbp), %rcx              ## 8-byte Reload
	jmp	LBB0_16
LBB0_18:
	cmpl	$7, -16552(%rbp)                ## 4-byte Folded Reload
	movq	-16568(%rbp), %rcx              ## 8-byte Reload
	jne	LBB0_20
## %bb.19:
	movq	32(%rcx), %rax
	subq	40(%rcx), %rax
	movq	%rax, 48(%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_20:
	movl	$-1, %r14d
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r14d, %eax
	addq	$16552, %rsp                    ## imm = 0x40A8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AM_GET_MEMORY_USAGE_SELF,4,2   ## @AM_GET_MEMORY_USAGE_SELF
	.comm	_AM_GET_MEMORY_USAGE_OVERALL,4,2 ## @AM_GET_MEMORY_USAGE_OVERALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/proc/meminfo"

L_.str.1:                               ## @.str.1
	.asciz	"/proc/meminfo: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

L_.str.3:                               ## @.str.3
	.asciz	"%31s%lld%31s"

L_.str.4:                               ## @.str.4
	.asciz	"kB"

L_.str.5:                               ## @.str.5
	.asciz	"MemFree:"

L_.str.6:                               ## @.str.6
	.asciz	"SwapTotal:"

L_.str.7:                               ## @.str.7
	.asciz	"SwapFree:"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_am_get_memory_stats            ; -- Begin function am_get_memory_stats
	.p2align	2
_am_get_memory_stats:                   ; @am_get_memory_stats
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w9, #16528
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	sub	sp, sp, #144
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	cbz	w1, LBB0_21
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh5:
	adrp	x8, _AM_GET_MEMORY_USAGE_SELF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AM_GET_MEMORY_USAGE_SELF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
	bl	_getpid
	sub	x1, x29, #144
	mov	w2, #6
	bl	_am_get_memory_usage
	tbnz	x0, #63, LBB0_21
; %bb.3:
	ldur	q0, [x29, #-144]
	str	q0, [x19]
	ldur	x8, [x29, #-104]
	str	x8, [x19, #16]
LBB0_4:
Lloh8:
	adrp	x8, _AM_GET_MEMORY_USAGE_OVERALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AM_GET_MEMORY_USAGE_OVERALL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_18
; %bb.5:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #80
	mov	w2, #16384
	bl	_read_whole_file
	tbnz	x0, #63, LBB0_21
; %bb.6:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #80
	mov	w0, #4
	bl	_vkprintf
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #80
	bl	_strtok
	cbz	x0, LBB0_21
; %bb.7:
	mov	w22, #0
	add	x8, x19, #40
	str	x8, [sp]                        ; 8-byte Folded Spill
	add	x24, x19, #32
	add	x25, x19, #24
Lloh17:
	adrp	x20, l_.str.3@PAGE
Lloh18:
	add	x20, x20, l_.str.3@PAGEOFF
	mov	w26, #17003
	mov	x27, #25933
	movk	x27, #18029, lsl #16
	movk	x27, #25970, lsl #32
	movk	x27, #14949, lsl #48
	mov	x28, #30547
	movk	x28, #28769, lsl #16
	movk	x28, #28500, lsl #32
	movk	x28, #24948, lsl #48
	mov	x23, #21616
	movk	x23, #29807, lsl #16
	movk	x23, #27745, lsl #32
	movk	x23, #58, lsl #48
Lloh19:
	adrp	x21, l_.str.2@PAGE
Lloh20:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #1
	mov	x9, x25
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	x10, [sp, #8]
	lsl	x10, x10, #10
	str	x10, [x9]
	orr	w22, w22, w8
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, #0
	mov	x1, x21
	bl	_strtok
	cbz	x0, LBB0_19
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #48
	add	x3, sp, #8
	add	x4, sp, #16
	mov	x1, x20
	bl	_sscanf
	cmp	w0, #3
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldrh	w8, [sp, #16]
	eor	w8, w8, w26
	ldrb	w9, [sp, #18]
	orr	w8, w8, w9
	cbnz	w8, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #48]
	eor	x8, x8, x27
	ldrb	w9, [sp, #56]
	orr	x8, x8, x9
	cbz	x8, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #48]
	eor	x8, x8, x28
	ldur	x9, [sp, #51]
	eor	x9, x9, x23
	orr	x8, x8, x9
	cbz	x8, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #48]
	mov	x9, #30547
	movk	x9, #28769, lsl #16
	movk	x9, #29254, lsl #32
	movk	x9, #25957, lsl #48
	eor	x8, x8, x9
	ldrh	w9, [sp, #56]
	mov	w10, #58
	eor	x9, x9, x10
	orr	x8, x8, x9
	cbnz	x8, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #4
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	b	LBB0_9
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #2
	mov	x9, x24
	b	LBB0_9
LBB0_18:
	mov	w0, #0
	b	LBB0_22
LBB0_19:
	cmp	w22, #7
	b.ne	LBB0_21
; %bb.20:
	mov	w0, #0
	ldp	x8, x9, [x19, #32]
	sub	x8, x8, x9
	str	x8, [x19, #48]
	b	LBB0_22
LBB0_21:
	mov	w0, #-1
LBB0_22:
	ldur	x8, [x29, #-96]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #144
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AM_GET_MEMORY_USAGE_SELF,4,2   ; @AM_GET_MEMORY_USAGE_SELF
	.comm	_AM_GET_MEMORY_USAGE_OVERALL,4,2 ; @AM_GET_MEMORY_USAGE_OVERALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/proc/meminfo"

l_.str.1:                               ; @.str.1
	.asciz	"/proc/meminfo: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

l_.str.3:                               ; @.str.3
	.asciz	"%31s%lld%31s"

l_.str.4:                               ; @.str.4
	.asciz	"kB"

l_.str.5:                               ; @.str.5
	.asciz	"MemFree:"

l_.str.6:                               ; @.str.6
	.asciz	"SwapTotal:"

l_.str.7:                               ; @.str.7
	.asciz	"SwapFree:"

.subsections_via_symbols
