	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_memory_usage               ## -- Begin function get_memory_usage
	.p2align	4, 0x90
_get_memory_usage:                      ## @get_memory_usage
	.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
	subq	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leal	(,%rbx,8), %edx
	movq	%rdi, -1088(%rbp)               ## 8-byte Spill
	xorl	%esi, %esi
	callq	_memset
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	movl	%eax, %r13d
	movl	$-1, %eax
	testl	%r13d, %r13d
	js	LBB0_17
## %bb.1:
	movq	%rbx, -1080(%rbp)               ## 8-byte Spill
	leaq	-1072(%rbp), %r14
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r14, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	cmpq	(%r15), %rax
	je	LBB0_2
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	cmpq	%rax, (%r12)
	jne	LBB0_6
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_close
	testq	%rax, %rax
	js	LBB0_4
LBB0_6:
	cmpl	$1023, %ebx                     ## imm = 0x3FF
	jbe	LBB0_8
LBB0_16:
	movl	$-1, %eax
	jmp	LBB0_17
LBB0_8:
	movl	%ebx, %eax
	movb	$0, -1072(%rbp,%rax)
	leaq	L_.str.1(%rip), %rsi
	leaq	-1072(%rbp), %rbx
	movl	$3, %edi
	movq	%rbx, %rdx
	callq	_vkprintf
	movq	__SC_PAGESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movq	%rax, %r13
	movq	-1080(%rbp), %rax               ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_15
## %bb.9:
	movl	%eax, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r12
	cmpq	%r15, %r12
	je	LBB0_15
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	-1088(%rbp), %rax               ## 8-byte Reload
	leaq	(%rax,%r12,8), %r14
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r14), %rax
	imulq	%r13, %rax
	movq	%rax, (%r14)
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isspace
	testl	%eax, %eax
	jne	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_13
	jmp	LBB0_10
LBB0_15:
	xorl	%eax, %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/proc/self/statm"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.1:                               ## @.str.1
	.asciz	"/proc/self/statm: %s\n"

	.comm	__SC_PAGESIZE,4,2               ## @_SC_PAGESIZE
L_.str.2:                               ## @.str.2
	.asciz	"%lld"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_memory_usage               ; -- Begin function get_memory_usage
	.p2align	2
_get_memory_usage:                      ; @get_memory_usage
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #1040
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	lsl	w2, w1, #3
	mov	w1, #0
	bl	_memset
Lloh3:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x21, x0
Lloh8:
	adrp	x23, _errno@GOTPAGE
Lloh9:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh10:
	adrp	x24, _EINTR@GOTPAGE
Lloh11:
	ldr	x24, [x24, _EINTR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #1024
	bl	_read
	mov	x22, x0
	tbz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_2
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_close
	tbnz	x0, #63, LBB0_4
LBB0_6:
	cmp	w22, #1023
	b.ls	LBB0_8
LBB0_7:
	mov	w0, #-1
	b	LBB0_16
LBB0_8:
	add	x8, sp, #8
	strb	wzr, [x8, w22, uxtw]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	w0, #3
	bl	_vkprintf
Lloh14:
	adrp	x8, __SC_PAGESIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, __SC_PAGESIZE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_sysconf
	cmp	w20, #1
	b.lt	LBB0_15
; %bb.9:
	mov	x21, x0
	mov	x24, #0
	add	x22, sp, #8
	mov	w25, w20
Lloh17:
	adrp	x20, l_.str.2@PAGE
Lloh18:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x24, #1
	cmp	x24, x25
	b.eq	LBB0_15
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	add	x23, x19, x24, lsl #3
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x23]
	mul	x8, x8, x21
	str	x8, [x23]
	ldrb	w8, [x22]
	cbz	w8, LBB0_10
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isspace
	cbnz	w0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldrb	w8, [x22, #1]!
	cbnz	w8, LBB0_13
	b	LBB0_10
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldur	x8, [x29, #-72]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/proc/self/statm"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.1:                               ; @.str.1
	.asciz	"/proc/self/statm: %s\n"

	.comm	__SC_PAGESIZE,4,2               ; @_SC_PAGESIZE
l_.str.2:                               ; @.str.2
	.asciz	"%lld"

.subsections_via_symbols
