	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_getswapinfo_sysctl         ## -- Begin function kvm_getswapinfo_sysctl
	.p2align	4, 0x90
_kvm_getswapinfo_sysctl:                ## @kvm_getswapinfo_sysctl
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SWI_MAXMIB@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_dmmax@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_GETSYSCTL
	movl	$-1, %r13d
	testl	%eax, %eax
	je	LBB0_19
## %bb.1:
	movslq	(%r14), %rax
	decq	%rax
	movq	%rax, -80(%rbp)
	leaq	L_.str.1(%rip), %rdi
	leaq	-80(%rbp), %rdx
	movq	%r12, %rsi
	callq	_sysctlnametomib
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	leaq	-112(%rbp), %rdi
	movl	$24, %esi
	callq	_bzero
	movq	_unswdev@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	-80(%rbp), %rsi
	movl	$0, (%r12,%rsi,4)
	movq	$32, -64(%rbp)
	incq	%rsi
	leaq	-160(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	cmpl	$-1, %eax
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_9
## %bb.4:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-120(%rbp), %rax                ## 8-byte Reload
	decl	%eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	-112(%rbp), %r14
	movq	-104(%rbp), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	%r15, %r13
	addq	-152(%rbp), %r14
	incl	%eax
	movl	%eax, (%rcx)
	movq	-80(%rbp), %rsi
	movl	%eax, (%r12,%rsi,4)
	movq	$32, -64(%rbp)
	incq	%rsi
	movq	%r12, %rdi
	leaq	-160(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	cmpl	$-1, %eax
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$32, -64(%rbp)
	jne	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-160(%rbp), %rax
	movq	_XSWDEV_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-136(%rbp), %r15
	movq	_dmmax@GOTPCREL(%rip), %rax
	subq	(%rax), %r15
	movq	_unswdev@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	cmpl	-88(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	cltq
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,8), %rdi
	movl	$24, %esi
	callq	_bzero
	movq	_unswdev@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	movq	%r15, 8(%rbx,%rax,8)
	movq	-152(%rbp), %rcx
	movq	%rcx, (%rbx,%rax,8)
	movl	-140(%rbp), %ecx
	movl	%ecx, 20(%rbx,%rax,8)
	movl	-144(%rbp), %edi
	movq	_unswdev@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	movl	16(%rbx,%rax,8), %esi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_GETSWDEVNAME
	movq	_unswdev@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	jmp	LBB0_16
LBB0_2:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_11
LBB0_6:
	movq	%r13, -104(%rbp)
	movq	%r14, -112(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_7
LBB0_13:
	movq	%r13, -104(%rbp)
	movq	%r14, -112(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %esi
	leaq	L_.str.5(%rip), %rdx
LBB0_7:
	xorl	%eax, %eax
	callq	__kvm_err
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	$-1, %r13d
	jmp	LBB0_19
LBB0_8:
	movq	%r13, -104(%rbp)
	movq	%r14, -112(%rbp)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	$-1, %r13d
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_10
## %bb.17:
	movq	_unswdev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	leal	-1(%rcx), %r13d
	cmpl	%ecx, %eax
	cmovll	%eax, %r13d
	testl	%r13d, %r13d
	js	LBB0_19
## %bb.18:
	movl	%r13d, %eax
	leaq	(%rax,%rax,2), %rax
	movq	-96(%rbp), %rcx
	movq	%rcx, 16(%rbx,%rax,8)
	movups	-112(%rbp), %xmm0
	movups	%xmm0, (%rbx,%rax,8)
	jmp	LBB0_19
LBB0_10:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r14d
	callq	_strerror
	leaq	L_.str.3(%rip), %rdx
LBB0_11:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	__kvm_err
LBB0_19:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SWI_MAXMIB,4,2                 ## @SWI_MAXMIB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm.dmmax"

	.comm	_dmmax,8,3                      ## @dmmax
L_.str.1:                               ## @.str.1
	.asciz	"vm.swap_info"

L_.str.2:                               ## @.str.2
	.asciz	"sysctlnametomib failed: %s"

	.comm	_errno,8,3                      ## @errno
	.comm	_unswdev,4,2                    ## @unswdev
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.3:                               ## @.str.3
	.asciz	"cannot read sysctl: %s."

L_.str.4:                               ## @.str.4
	.asciz	"struct xswdev has unexpected size;  kernel and libkvm out of sync?"

	.comm	_XSWDEV_VERSION,8,3             ## @XSWDEV_VERSION
L_.str.5:                               ## @.str.5
	.asciz	"struct xswdev version mismatch; kernel and libkvm out of sync?"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_getswapinfo_sysctl         ; -- Begin function kvm_getswapinfo_sysctl
	.p2align	2
_kvm_getswapinfo_sysctl:                ; @kvm_getswapinfo_sysctl
	.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, #112
	stur	w3, [x29, #-164]                ; 4-byte Folded Spill
	mov	x24, x2
	mov	x20, x1
	mov	x22, x0
	mov	x21, sp
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	x19, _SWI_MAXMIB@GOTPAGE
Lloh4:
	ldr	x19, [x19, _SWI_MAXMIB@GOTPAGEOFF]
	ldr	w8, [x19]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh7:
	adrp	x25, _dmmax@GOTPAGE
Lloh8:
	ldr	x25, [x25, _dmmax@GOTPAGEOFF]
	ldr	x2, [x25]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_GETSYSCTL
	cbz	w0, LBB0_19
; %bb.1:
	ldrsw	x8, [x19]
	sub	x8, x8, #1
	stur	x8, [x29, #-96]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	sub	x2, x29, #96
	mov	x1, x23
	bl	_sysctlnametomib
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.2:
	sub	x0, x29, #160
	mov	w1, #24
	bl	_bzero
Lloh13:
	adrp	x26, _unswdev@GOTPAGE
Lloh14:
	ldr	x26, [x26, _unswdev@GOTPAGEOFF]
	str	wzr, [x26]
	ldur	x8, [x29, #-96]
	str	wzr, [x23, x8, lsl #2]
	mov	w9, #32
	stur	x9, [x29, #-104]
	add	x1, x8, #1
	sub	x2, x29, #136
	sub	x3, x29, #104
	mov	x0, x23
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.3:
	stp	x22, x21, [x29, #-184]          ; 16-byte Folded Spill
	stur	w24, [x29, #-188]               ; 4-byte Folded Spill
	sub	w24, w24, #1
	ldp	x27, x28, [x29, #-160]
	mov	w21, #24
Lloh15:
	adrp	x22, _XSWDEV_VERSION@GOTPAGE
Lloh16:
	ldr	x22, [x22, _XSWDEV_VERSION@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, x19
	ldur	x9, [x29, #-128]
	add	x27, x27, x9
	add	w8, w8, #1
	str	w8, [x26]
	ldur	x9, [x29, #-96]
	str	w8, [x23, x9, lsl #2]
	mov	w8, #32
	stur	x8, [x29, #-104]
	add	x1, x9, #1
	sub	x2, x29, #136
	sub	x3, x29, #104
	mov	x0, x23
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cmn	w0, #1
	b.eq	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x29, #-104]
	cmp	x8, #32
	b.ne	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-136]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-112]
	ldr	x9, [x25]
	sub	x19, x8, x9
	ldr	w8, [x26]
	cmp	w8, w24
	b.ge	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w8
	madd	x0, x8, x21, x20
	mov	w1, #24
	bl	_bzero
	ldrsw	x8, [x26]
	madd	x8, x8, x21, x20
	ldur	x9, [x29, #-128]
	stp	x9, x19, [x8]
	ldp	w0, w9, [x29, #-120]
	str	w9, [x8, #20]
	ldrsw	x8, [x26]
	madd	x8, x8, x21, x20
	ldr	w1, [x8, #16]
	ldur	w2, [x29, #-164]                ; 4-byte Folded Reload
	bl	_GETSWDEVNAME
	ldr	w8, [x26]
	b	LBB0_4
LBB0_9:
	ldr	w20, [x22]
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_10:
	stp	x27, x28, [x29, #-160]
	ldur	x0, [x29, #-184]                ; 8-byte Folded Reload
	ldr	w1, [x0]
Lloh22:
	adrp	x2, l_.str.4@PAGE
Lloh23:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_11:
	stp	x27, x28, [x29, #-160]
	ldur	x0, [x29, #-184]                ; 8-byte Folded Reload
	ldr	w1, [x0]
Lloh24:
	adrp	x2, l_.str.5@PAGE
Lloh25:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_12:
	bl	__kvm_err
	mov	w0, #-1
	ldur	x21, [x29, #-176]               ; 8-byte Folded Reload
	b	LBB0_20
LBB0_13:
	stp	x27, x28, [x29, #-160]
	ldp	x22, x21, [x29, #-184]          ; 16-byte Folded Reload
	ldur	w24, [x29, #-188]               ; 4-byte Folded Reload
LBB0_14:
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	x0, [x8]
Lloh29:
	adrp	x8, _ENOENT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.15:
	ldr	w8, [x26]
	sub	w9, w24, #1
	cmp	w8, w24
	csel	w0, w8, w9, lt
	tbnz	w0, #31, LBB0_20
; %bb.16:
	mov	w8, #24
	umaddl	x8, w0, w8, x20
	ldur	q0, [x29, #-160]
	str	q0, [x8]
	ldur	x9, [x29, #-144]
	str	x9, [x8, #16]
	b	LBB0_20
LBB0_17:
	ldr	w20, [x22]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh32:
	adrp	x2, l_.str.3@PAGE
Lloh33:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_18:
	mov	x0, x22
	mov	x1, x20
	bl	__kvm_err
	add	sp, sp, #16
LBB0_19:
	mov	w0, #-1
LBB0_20:
	mov	sp, x21
	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_22
; %bb.21:
	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_22:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_SWI_MAXMIB,4,2                 ; @SWI_MAXMIB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm.dmmax"

	.comm	_dmmax,8,3                      ; @dmmax
l_.str.1:                               ; @.str.1
	.asciz	"vm.swap_info"

l_.str.2:                               ; @.str.2
	.asciz	"sysctlnametomib failed: %s"

	.comm	_errno,8,3                      ; @errno
	.comm	_unswdev,4,2                    ; @unswdev
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.3:                               ; @.str.3
	.asciz	"cannot read sysctl: %s."

l_.str.4:                               ; @.str.4
	.asciz	"struct xswdev has unexpected size;  kernel and libkvm out of sync?"

	.comm	_XSWDEV_VERSION,8,3             ; @XSWDEV_VERSION
l_.str.5:                               ; @.str.5
	.asciz	"struct xswdev version mismatch; kernel and libkvm out of sync?"

.subsections_via_symbols
