	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function domemstat_malloc
_domemstat_malloc:                      ## @domemstat_malloc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_memstat_mtl_alloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movq	%rax, %rbx
	movq	_kd@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%rax, %rdi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.4:
	callq	_memstat_kvm_malloc
	testq	%rax, %rax
	jns	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	callq	_memstat_mtl_geterror
	movq	_MEMSTAT_ERROR_KVM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	movq	(%r14), %rdi
	callq	_kvm_geterr
	jmp	LBB0_8
LBB0_22:
	leaq	L_.str(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xo_warn                        ## TAILCALL
LBB0_2:
	xorl	%esi, %esi
	callq	_memstat_sysctl_malloc
	testq	%rax, %rax
	jns	LBB0_9
## %bb.3:
	movq	%rbx, %rdi
	callq	_memstat_mtl_geterror
	movl	%eax, %edi
	callq	_memstat_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xo_warnx                       ## TAILCALL
LBB0_7:
	movl	%eax, %edi
	callq	_memstat_strerror
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_xo_warnx
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	callq	_xo_open_container
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.6(%rip), %rdx
	leaq	L_.str.7(%rip), %rcx
	leaq	L_.str.8(%rip), %r8
	leaq	L_.str.9(%rip), %r9
	xorl	%eax, %eax
	callq	_xo_emit
	leaq	L_.str.10(%rip), %rdi
	callq	_xo_open_list
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_memstat_mtl_first
	testq	%rax, %rax
	je	LBB0_21
## %bb.10:
	movq	%rax, %r13
	leaq	L_.str.10(%rip), %rbx
	leaq	L_.str.13(%rip), %r14
	leaq	L_.str.15(%rip), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	callq	_xo_close_list
	leaq	L_.str.10(%rip), %rbx
	movq	%rbx, %rdi
	callq	_xo_close_instance
	leaq	L_.str.16(%rip), %rdi
	xorl	%eax, %eax
	callq	_xo_emit
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	callq	_memstat_mtl_next
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_21
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	%r13, %rdi
	callq	_memstat_get_numallocs
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	callq	_memstat_get_count
	testq	%rax, %rax
	je	LBB0_20
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_xo_open_instance
	movq	%r13, %rdi
	callq	_memstat_get_name
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_memstat_get_count
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_memstat_get_bytes
	leal	1023(%rax), %ecx
	movq	%r14, %rbx
	leal	2046(%rax), %r14d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r14d
	sarl	$10, %r14d
	movq	%r13, %rdi
	callq	_memstat_get_numallocs
	xorl	%r15d, %r15d
	leaq	L_.str.11(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r14d, %ecx
	movq	%rbx, %r14
	leaq	L_.str.12(%rip), %r8
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_xo_emit
	movq	%rbx, %rdi
	callq	_xo_open_list
	movl	$1, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	$16, %esi
	movl	%r15d, %ecx
	shll	%cl, %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_xo_emit
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=2
	incl	%r15d
	cmpl	$32, %r15d
	je	LBB0_19
LBB0_14:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_memstat_get_sizemask
	btl	%r15d, %eax
	jae	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	testl	%ebx, %ebx
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	leaq	L_.str.14(%rip), %rdi
	xorl	%eax, %eax
	callq	_xo_emit
	jmp	LBB0_17
LBB0_21:
	leaq	L_.str.10(%rip), %rdi
	callq	_xo_close_list
	leaq	L_.str.3(%rip), %rdi
	callq	_xo_close_container
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memstat_mtl_free               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memstat_mtl_alloc"

	.comm	_kd,8,3                         ## @kd
L_.str.1:                               ## @.str.1
	.asciz	"memstat_sysctl_malloc: %s"

	.comm	_MEMSTAT_ERROR_KVM,4,2          ## @MEMSTAT_ERROR_KVM
L_.str.2:                               ## @.str.2
	.asciz	"memstat_kvm_malloc: %s"

L_.str.3:                               ## @.str.3
	.asciz	"malloc-statistics"

L_.str.4:                               ## @.str.4
	.asciz	"{T:/%13s} {T:/%5s} {T:/%6s} {T:/%7s} {T:/%8s}  {T:Size(s)}\n"

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

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

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

L_.str.8:                               ## @.str.8
	.asciz	"HighUse"

L_.str.9:                               ## @.str.9
	.asciz	"Requests"

L_.str.10:                              ## @.str.10
	.asciz	"memory"

L_.str.11:                              ## @.str.11
	.asciz	"{k:type/%13s/%s} {:in-use/%5ju} {:memory-use/%5ju}{U:K} {:high-use/%7s} {:requests/%8ju}  "

L_.str.12:                              ## @.str.12
	.asciz	"-"

L_.str.13:                              ## @.str.13
	.asciz	"size"

L_.str.14:                              ## @.str.14
	.asciz	","

L_.str.15:                              ## @.str.15
	.asciz	"{l:size/%d}"

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

	.no_dead_strip	_domemstat_malloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function domemstat_malloc
_domemstat_malloc:                      ; @domemstat_malloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	bl	_memstat_mtl_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x19, _kd@GOTPAGE
Lloh1:
	ldr	x19, [x19, _kd@GOTPAGEOFF]
	ldr	x1, [x19]
	cbz	x1, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_memstat_kvm_malloc
	tbz	x0, #63, LBB0_10
; %bb.3:
	mov	x0, x20
	bl	_memstat_mtl_geterror
Lloh2:
	adrp	x8, _MEMSTAT_ERROR_KVM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MEMSTAT_ERROR_KVM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.4:
	ldr	x0, [x19]
	bl	_kvm_geterr
	b	LBB0_9
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_xo_warn
LBB0_6:
	mov	x0, x20
	bl	_memstat_sysctl_malloc
	tbz	x0, #63, LBB0_10
; %bb.7:
	mov	x0, x20
	bl	_memstat_mtl_geterror
	bl	_memstat_strerror
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_xo_warnx
LBB0_8:
	bl	_memstat_strerror
LBB0_9:
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_xo_warnx
LBB0_10:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_xo_open_container
Lloh13:
	adrp	x8, l_.str.9@PAGE
Lloh14:
	add	x8, x8, l_.str.9@PAGEOFF
Lloh15:
	adrp	x9, l_.str.8@PAGE
Lloh16:
	add	x9, x9, l_.str.8@PAGEOFF
Lloh17:
	adrp	x10, l_.str.7@PAGE
Lloh18:
	add	x10, x10, l_.str.7@PAGEOFF
	stp	x9, x8, [sp, #24]
Lloh19:
	adrp	x8, l_.str.6@PAGE
Lloh20:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh21:
	adrp	x11, l_.str.5@PAGE
Lloh22:
	add	x11, x11, l_.str.5@PAGEOFF
	stp	x8, x10, [sp, #8]
	str	x11, [sp]
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_xo_emit
Lloh25:
	adrp	x0, l_.str.10@PAGE
Lloh26:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_xo_open_list
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	mov	x0, x20
	bl	_memstat_mtl_first
	cbz	x0, LBB0_22
; %bb.11:
	mov	x20, x0
Lloh27:
	adrp	x21, l_.str.10@PAGE
Lloh28:
	add	x21, x21, l_.str.10@PAGEOFF
Lloh29:
	adrp	x23, l_.str.13@PAGE
Lloh30:
	add	x23, x23, l_.str.13@PAGEOFF
Lloh31:
	adrp	x24, l_.str.16@PAGE
Lloh32:
	add	x24, x24, l_.str.16@PAGEOFF
Lloh33:
	adrp	x25, l_.str.14@PAGE
Lloh34:
	add	x25, x25, l_.str.14@PAGEOFF
	mov	w19, #16
Lloh35:
	adrp	x26, l_.str.15@PAGE
Lloh36:
	add	x26, x26, l_.str.15@PAGEOFF
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x23
	bl	_xo_close_list
	mov	x0, x21
	bl	_xo_close_instance
	mov	x0, x24
	bl	_xo_emit
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x20
	bl	_memstat_mtl_next
	mov	x20, x0
	cbz	x0, LBB0_22
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	mov	x0, x20
	bl	_memstat_get_numallocs
	cbnz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x20
	bl	_memstat_get_count
	cbz	x0, LBB0_13
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x21
	bl	_xo_open_instance
	mov	x0, x20
	bl	_memstat_get_name
	mov	x27, x0
	mov	x0, x20
	bl	_memstat_get_count
	mov	x28, x0
	mov	x0, x20
	bl	_memstat_get_bytes
	add	w8, w0, #1023
	add	w9, w0, #2046
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w22, w8, #10
	mov	x0, x20
	bl	_memstat_get_numallocs
	stp	x27, x28, [sp]
Lloh37:
	adrp	x8, l_.str.12@PAGE
Lloh38:
	add	x8, x8, l_.str.12@PAGEOFF
	stp	x8, x0, [sp, #24]
	str	x22, [sp, #16]
Lloh39:
	adrp	x0, l_.str.11@PAGE
Lloh40:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_xo_emit
	mov	x0, x23
	bl	_xo_open_list
	mov	w27, #0
	mov	w28, #1
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=2
	lsl	w8, w19, w27
	str	x8, [sp]
	mov	x0, x26
	bl	_xo_emit
	mov	w28, #0
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	w27, w27, #1
	cmp	w27, #32
	b.eq	LBB0_12
LBB0_19:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_memstat_get_sizemask
	lsr	w8, w0, w27
	tbz	w8, #0, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	cbnz	w28, LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x0, x25
	bl	_xo_emit
	b	LBB0_17
LBB0_22:
Lloh41:
	adrp	x0, l_.str.10@PAGE
Lloh42:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_xo_close_list
Lloh43:
	adrp	x0, l_.str.3@PAGE
Lloh44:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_xo_close_container
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_memstat_mtl_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memstat_mtl_alloc"

	.comm	_kd,8,3                         ; @kd
l_.str.1:                               ; @.str.1
	.asciz	"memstat_sysctl_malloc: %s"

	.comm	_MEMSTAT_ERROR_KVM,4,2          ; @MEMSTAT_ERROR_KVM
l_.str.2:                               ; @.str.2
	.asciz	"memstat_kvm_malloc: %s"

l_.str.3:                               ; @.str.3
	.asciz	"malloc-statistics"

l_.str.4:                               ; @.str.4
	.asciz	"{T:/%13s} {T:/%5s} {T:/%6s} {T:/%7s} {T:/%8s}  {T:Size(s)}\n"

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

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

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

l_.str.8:                               ; @.str.8
	.asciz	"HighUse"

l_.str.9:                               ; @.str.9
	.asciz	"Requests"

l_.str.10:                              ; @.str.10
	.asciz	"memory"

l_.str.11:                              ; @.str.11
	.asciz	"{k:type/%13s/%s} {:in-use/%5ju} {:memory-use/%5ju}{U:K} {:high-use/%7s} {:requests/%8ju}  "

l_.str.12:                              ; @.str.12
	.asciz	"-"

l_.str.13:                              ; @.str.13
	.asciz	"size"

l_.str.14:                              ; @.str.14
	.asciz	","

l_.str.15:                              ; @.str.15
	.asciz	"{l:size/%d}"

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

	.no_dead_strip	_domemstat_malloc
.subsections_via_symbols
