	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function storage_OS_get_memstat
_storage_OS_get_memstat:                ## @storage_OS_get_memstat
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_mt_list@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_memstat_mtl_alloc
	movq	%rax, %rdi
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_23
LBB0_2:
	xorl	%esi, %esi
	callq	_memstat_sysctl_all
	testq	%rax, %rax
	js	LBB0_3
## %bb.5:
	movq	(%rbx), %rdi
	callq	_memstat_mtl_first
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	%rax, %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_INT_MAX@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	cmovlq	%rax, %rcx
	movq	%rcx, 24(%r14)
	movq	%rbx, %rdi
	callq	_memstat_get_countlimit
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	cmovlq	%rax, %rcx
	movq	%rcx, 16(%r14)
	movq	%rbx, %rdi
	callq	_memstat_get_count
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	cmovlq	%rax, %rcx
	movq	%rcx, 8(%r14)
	movq	%rbx, %rdi
	callq	_memstat_get_failures
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	cmovlq	%rax, %rcx
	movq	%rcx, (%r14)
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rsp
	movq	%rbx, %rdi
	callq	_memstat_mtl_next
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_23
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, %r12
	movq	_SE_DESC_MLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rdi
	callq	_memstat_get_name
	testq	%rax, %rax
	je	LBB0_22
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r15
	cmpb	$0, (%rax)
	je	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_memstat_get_allocator
	movq	%r13, %rdi
	movl	%r14d, %esi
	cmpl	$128, %eax
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$129, %eax
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_12
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.3(%rip), %rdx
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.4(%rip), %rdx
	movl	%eax, %ecx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_snprintf
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_storage_find_by_name
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_storage_entry_create
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_25
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_HR_STORAGE_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%r14)
	movq	_OIDX_hrStorageRam_c@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	%rbx, %rdi
	callq	_memstat_get_size
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_memstat_get_sizemask
	jmp	LBB0_21
LBB0_3:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %rdi
	callq	_memstat_mtl_geterror
	movl	%eax, %edi
	callq	_memstat_strerror
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_24
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_syslog                         ## TAILCALL
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.14:
	leaq	L_.str.1(%rip), %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HRDBG                          ## TAILCALL
LBB0_25:
	movq	%r12, %rsp
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_mt_list,8,3                    ## @mt_list
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memstat_sysctl_all failed: %s"

L_.str.1:                               ## @.str.1
	.asciz	"memstat_mtl_first failed"

	.comm	_SE_DESC_MLEN,4,2               ## @SE_DESC_MLEN
L_.str.2:                               ## @.str.2
	.asciz	"MALLOC: %s"

L_.str.3:                               ## @.str.3
	.asciz	"UMA: %s"

L_.str.4:                               ## @.str.4
	.asciz	"UNKNOWN%d: %s"

	.comm	_HR_STORAGE_FOUND,4,2           ## @HR_STORAGE_FOUND
	.comm	_OIDX_hrStorageRam_c,4,2        ## @OIDX_hrStorageRam_c
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.no_dead_strip	_storage_OS_get_memstat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function storage_OS_get_memstat
_storage_OS_get_memstat:                ; @storage_OS_get_memstat
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x20, _mt_list@GOTPAGE
Lloh4:
	ldr	x20, [x20, _mt_list@GOTPAGEOFF]
	ldr	x0, [x20]
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_memstat_mtl_alloc
	str	x0, [x20]
	cbz	x0, LBB0_23
LBB0_2:
	mov	w1, #0
	bl	_memstat_sysctl_all
	tbnz	x0, #63, LBB0_18
; %bb.3:
	ldr	x0, [x20]
	bl	_memstat_mtl_first
	cbz	x0, LBB0_20
; %bb.4:
	mov	x19, x0
Lloh5:
	adrp	x26, _SE_DESC_MLEN@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SE_DESC_MLEN@GOTPAGEOFF]
Lloh7:
	adrp	x27, _HR_STORAGE_FOUND@GOTPAGE
Lloh8:
	ldr	x27, [x27, _HR_STORAGE_FOUND@GOTPAGEOFF]
Lloh9:
	adrp	x28, _OIDX_hrStorageRam_c@GOTPAGE
Lloh10:
	ldr	x28, [x28, _OIDX_hrStorageRam_c@GOTPAGEOFF]
Lloh11:
	adrp	x20, _INT_MAX@GOTPAGE
Lloh12:
	ldr	x20, [x20, _INT_MAX@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str.4@PAGE
Lloh14:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	cmp	x0, x8
	csel	x8, x0, x8, lt
	str	x8, [x24, #24]
	mov	x0, x19
	bl	_memstat_get_countlimit
	ldr	x8, [x20]
	cmp	x0, x8
	csel	x8, x0, x8, lt
	str	x8, [x24, #16]
	mov	x0, x19
	bl	_memstat_get_count
	ldr	x8, [x20]
	cmp	x0, x8
	csel	x8, x0, x8, lt
	str	x8, [x24, #8]
	mov	x0, x19
	bl	_memstat_get_failures
	ldr	x8, [x20]
	cmp	x0, x8
	csel	x8, x0, x8, lt
	str	x8, [x24]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	sp, x21
	mov	x0, x19
	bl	_memstat_mtl_next
	mov	x19, x0
	cbz	x0, LBB0_23
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, sp
	ldr	w24, [x26]
	mov	x9, x24
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	mov	x0, x19
	bl	_memstat_get_name
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_memstat_get_allocator
                                        ; kill: def $w0 killed $w0 def $x0
	sub	sp, sp, #16
	cmp	w0, #128
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w0, #129
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x25, [sp]
	mov	x0, x23
	mov	x1, x24
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x25, [sp]
	mov	x0, x23
	mov	x1, x24
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	stp	x0, x25, [sp]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_snprintf
	add	sp, sp, #16
	mov	x0, x23
	bl	_storage_find_by_name
	mov	x24, x0
	cbnz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_storage_entry_create
	mov	x24, x0
	cbz	x0, LBB0_22
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x24, #40]
	orr	w8, w9, w8
	str	w8, [x24, #40]
	str	x28, [x24, #32]
	mov	x0, x19
	bl	_memstat_get_size
	cbnz	x0, LBB0_5
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_memstat_get_sizemask
	b	LBB0_5
LBB0_18:
Lloh21:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
	ldr	x0, [x20]
	bl	_memstat_mtl_geterror
	bl	_memstat_strerror
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.19:
	mov	x2, x0
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	sub	sp, x29, #80
	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
	b	_syslog
LBB0_20:
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.21:
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	sub	sp, x29, #80
	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
	b	_HRDBG
LBB0_22:
	mov	sp, x21
LBB0_23:
	ldur	x8, [x29, #-88]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	sub	sp, x29, #80
	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_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_mt_list,8,3                    ; @mt_list
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memstat_sysctl_all failed: %s"

l_.str.1:                               ; @.str.1
	.asciz	"memstat_mtl_first failed"

	.comm	_SE_DESC_MLEN,4,2               ; @SE_DESC_MLEN
l_.str.2:                               ; @.str.2
	.asciz	"MALLOC: %s"

l_.str.3:                               ; @.str.3
	.asciz	"UMA: %s"

l_.str.4:                               ; @.str.4
	.asciz	"UNKNOWN%d: %s"

	.comm	_HR_STORAGE_FOUND,4,2           ; @HR_STORAGE_FOUND
	.comm	_OIDX_hrStorageRam_c,4,2        ; @OIDX_hrStorageRam_c
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.no_dead_strip	_storage_OS_get_memstat
.subsections_via_symbols
