	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function storage_OS_get_swap
_storage_OS_get_swap:                   ## @storage_OS_get_swap
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	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	$4, -64(%rbp)
	movl	$0, -52(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-52(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movl	-52(%rbp), %edx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.5:
	incl	%edx
	movq	_swap_devs_len@GOTPCREL(%rip), %rbx
	movq	_swap_devs@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	cmpl	(%rbx), %edx
	jne	LBB0_7
## %bb.6:
	testq	%rsi, %rsi
	jne	LBB0_9
LBB0_7:
	movl	%edx, (%rbx)
	shll	$2, %edx
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_reallocf
	movq	%rax, (%r12)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.8:
	movl	(%rbx), %edx
LBB0_9:
	movq	_hr_kd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ecx, %ecx
	callq	_kvm_getswapinfo
	movl	%eax, -52(%rbp)
	testl	%eax, %eax
	js	LBB0_19
## %bb.10:
	movq	$0, -64(%rbp)
	je	LBB0_16
## %bb.11:
	leal	-1(%r14), %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	movq	__PATH_DEV@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%r12), %rax
	movq	-64(%rbp), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	8(%rax,%rdx,4), %r8d
	movq	%r13, %rdi
	movl	%r15d, %esi
	leaq	L_.str.4(%rip), %rdx
	callq	_snprintf
	movq	%r13, %rdi
	callq	_storage_find_by_name
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, %rdi
	callq	_storage_entry_create
	movq	%rax, %rbx
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_HR_STORAGE_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
	movq	_OIDX_hrStorageVirtualMemory_c@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	xorl	%eax, %eax
	callq	_getpagesize
	movl	%eax, 16(%rbx)
	movq	(%r12), %rax
	movq	-64(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %edx
	movl	%edx, 12(%rbx)
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	movq	-64(%rbp), %rax
	incq	%rax
	movq	%rax, -64(%rbp)
	movslq	-52(%rbp), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_12
	jmp	LBB0_16
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	movl	%edx, %esi
	callq	_HRDBG
	jmp	LBB0_16
LBB0_19:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_2:
	callq	_syslog
	xorl	%edi, %edi
	callq	_assert
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	$0, (%rbx)
	jmp	LBB0_16
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SE_DESC_MLEN,4,2               ## @SE_DESC_MLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm.nswapdev"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"hrStorageTable: sysctlbyname(\"vm.nswapdev\") failed. %m"

L_.str.2:                               ## @.str.2
	.asciz	"vm.nswapdev is %d"

	.comm	_swap_devs_len,4,2              ## @swap_devs_len
	.comm	_swap_devs,8,3                  ## @swap_devs
	.comm	_hr_kd,4,2                      ## @hr_kd
L_.str.3:                               ## @.str.3
	.asciz	"hrStorageTable: kvm_getswapinfo failed. %m\n"

L_.str.4:                               ## @.str.4
	.asciz	"Swap:%s%s"

	.comm	__PATH_DEV,8,3                  ## @_PATH_DEV
	.comm	_HR_STORAGE_FOUND,4,2           ## @HR_STORAGE_FOUND
	.comm	_OIDX_hrStorageVirtualMemory_c,4,2 ## @OIDX_hrStorageVirtualMemory_c
	.no_dead_strip	_storage_OS_get_swap
.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_swap
_storage_OS_get_swap:                   ; @storage_OS_get_swap
	.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, #32
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	x8, _SE_DESC_MLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SE_DESC_MLEN@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	mov	w8, #4
	stur	x8, [x29, #-96]
	stur	wzr, [x29, #-100]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	sub	x1, x29, #100
	sub	x2, x29, #96
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	tbnz	x0, #63, LBB0_12
; %bb.1:
	ldur	w1, [x29, #-100]
	cmp	w1, #0
	b.le	LBB0_13
; %bb.2:
	add	w2, w1, #1
Lloh10:
	adrp	x21, _swap_devs_len@GOTPAGE
Lloh11:
	ldr	x21, [x21, _swap_devs_len@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh12:
	adrp	x24, _swap_devs@GOTPAGE
Lloh13:
	ldr	x24, [x24, _swap_devs@GOTPAGEOFF]
	ldr	x1, [x24]
	cmp	w2, w8
	ccmp	x1, #0, #4, eq
	b.ne	LBB0_5
; %bb.3:
	str	w2, [x21]
	lsl	w8, w2, #2
	mov	x0, x1
	mov	x1, x8
	bl	_reallocf
	str	x0, [x24]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x1, [x24]
	cbz	x1, LBB0_18
; %bb.4:
	ldr	w2, [x21]
LBB0_5:
Lloh14:
	adrp	x8, _hr_kd@GOTPAGE
Lloh15:
	ldr	x8, [x8, _hr_kd@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w3, #0
	bl	_kvm_getswapinfo
	stur	w0, [x29, #-100]
	tbnz	w0, #31, LBB0_14
; %bb.6:
	stur	xzr, [x29, #-96]
	cbz	w0, LBB0_16
; %bb.7:
	sub	w21, w19, #1
Lloh17:
	adrp	x25, __PATH_DEV@GOTPAGE
Lloh18:
	ldr	x25, [x25, __PATH_DEV@GOTPAGEOFF]
	mov	w26, #12
Lloh19:
	adrp	x27, _HR_STORAGE_FOUND@GOTPAGE
Lloh20:
	ldr	x27, [x27, _HR_STORAGE_FOUND@GOTPAGEOFF]
Lloh21:
	adrp	x28, _OIDX_hrStorageVirtualMemory_c@GOTPAGE
Lloh22:
	ldr	x28, [x28, _OIDX_hrStorageVirtualMemory_c@GOTPAGEOFF]
Lloh23:
	adrp	x22, l_.str.4@PAGE
Lloh24:
	add	x22, x22, l_.str.4@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_memset
	ldr	x3, [x25]
	ldr	x8, [x24]
	ldur	x9, [x29, #-96]
	madd	x8, x9, x26, x8
	ldr	w4, [x8, #8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_snprintf
	mov	x0, x20
	bl	_storage_find_by_name
	mov	x23, x0
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_storage_entry_create
	mov	x23, x0
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x23, #0
	cset	w0, ne
	bl	_assert
	cbz	x23, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x23, #32]
	orr	w8, w9, w8
	str	w8, [x23, #32]
	str	x28, [x23, #24]
	bl	_getpagesize
	str	w0, [x23, #16]
	ldr	x8, [x24]
	ldur	x9, [x29, #-96]
	mul	x9, x9, x26
	ldr	d0, [x8, x9]
	str	d0, [x23, #8]
	str	xzr, [x23]
	ldur	x8, [x29, #-96]
	add	x8, x8, #1
	stur	x8, [x29, #-96]
	ldursw	x9, [x29, #-100]
	cmp	x8, x9
	b.lo	LBB0_8
	b	LBB0_16
LBB0_12:
Lloh25:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_13:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_HRDBG
	b	LBB0_16
LBB0_14:
Lloh32:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_15:
	bl	_syslog
	mov	w0, #0
	bl	_assert
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.17:
	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_18:
	str	wzr, [x21]
	b	LBB0_16
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_SE_DESC_MLEN,4,2               ; @SE_DESC_MLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm.nswapdev"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"hrStorageTable: sysctlbyname(\"vm.nswapdev\") failed. %m"

l_.str.2:                               ; @.str.2
	.asciz	"vm.nswapdev is %d"

	.comm	_swap_devs_len,4,2              ; @swap_devs_len
	.comm	_swap_devs,8,3                  ; @swap_devs
	.comm	_hr_kd,4,2                      ; @hr_kd
l_.str.3:                               ; @.str.3
	.asciz	"hrStorageTable: kvm_getswapinfo failed. %m\n"

l_.str.4:                               ; @.str.4
	.asciz	"Swap:%s%s"

	.comm	__PATH_DEV,8,3                  ; @_PATH_DEV
	.comm	_HR_STORAGE_FOUND,4,2           ; @HR_STORAGE_FOUND
	.comm	_OIDX_hrStorageVirtualMemory_c,4,2 ; @OIDX_hrStorageVirtualMemory_c
	.no_dead_strip	_storage_OS_get_swap
.subsections_via_symbols
