	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_initswap                       ## -- Begin function initswap
	.p2align	4, 0x90
_initswap:                              ## @initswap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$1, %ebx
	cmpb	$0, _initswap.once(%rip)
	jne	LBB0_4
## %bb.1:
	movq	_hlen@GOTPCREL(%rip), %rdi
	movq	_blocksize@GOTPCREL(%rip), %rsi
	callq	_getbsize
	movq	_header@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_getpagesize
	movq	_pagesize@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_kd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_kvmsw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NSWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_kvm_getswapinfo
	movq	_kvnsw@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_okvnsw@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_calclens
	movq	_dlen@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_odlen@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_ulen@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_oulen@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movb	$1, _initswap.once(%rip)
	movl	$12, %edi
	callq	_dsinit
	movl	$1, %ebx
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_initswap.once,1,2 ## @initswap.once
	.comm	_hlen,4,2                       ## @hlen
	.comm	_blocksize,4,2                  ## @blocksize
	.comm	_header,4,2                     ## @header
	.comm	_pagesize,4,2                   ## @pagesize
	.comm	_kd,4,2                         ## @kd
	.comm	_kvmsw,4,2                      ## @kvmsw
	.comm	_NSWAP,4,2                      ## @NSWAP
	.comm	_kvnsw,4,2                      ## @kvnsw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"systat: kvm_getswapinfo failed"

	.comm	_okvnsw,4,2                     ## @okvnsw
	.comm	_dlen,4,2                       ## @dlen
	.comm	_odlen,4,2                      ## @odlen
	.comm	_ulen,4,2                       ## @ulen
	.comm	_oulen,4,2                      ## @oulen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_initswap                       ; -- Begin function initswap
	.p2align	2
_initswap:                              ; @initswap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	adrp	x20, _initswap.once@PAGE
	ldrb	w8, [x20, _initswap.once@PAGEOFF]
	tbz	w8, #0, LBB0_2
; %bb.1:
	mov	w19, #1
	b	LBB0_5
LBB0_2:
Lloh0:
	adrp	x0, _hlen@GOTPAGE
Lloh1:
	ldr	x0, [x0, _hlen@GOTPAGEOFF]
Lloh2:
	adrp	x1, _blocksize@GOTPAGE
Lloh3:
	ldr	x1, [x1, _blocksize@GOTPAGEOFF]
	bl	_getbsize
Lloh4:
	adrp	x8, _header@GOTPAGE
Lloh5:
	ldr	x8, [x8, _header@GOTPAGEOFF]
Lloh6:
	str	w0, [x8]
	bl	_getpagesize
Lloh7:
	adrp	x8, _pagesize@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pagesize@GOTPAGEOFF]
Lloh9:
	str	w0, [x8]
Lloh10:
	adrp	x8, _kd@GOTPAGE
Lloh11:
	ldr	x8, [x8, _kd@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _kvmsw@GOTPAGE
Lloh14:
	ldr	x8, [x8, _kvmsw@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _NSWAP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NSWAP@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_kvm_getswapinfo
Lloh19:
	adrp	x8, _kvnsw@GOTPAGE
Lloh20:
	ldr	x8, [x8, _kvnsw@GOTPAGEOFF]
Lloh21:
	str	w0, [x8]
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh22:
	adrp	x8, _okvnsw@GOTPAGE
Lloh23:
	ldr	x8, [x8, _okvnsw@GOTPAGEOFF]
Lloh24:
	str	w0, [x8]
	bl	_calclens
Lloh25:
	adrp	x8, _dlen@GOTPAGE
Lloh26:
	ldr	x8, [x8, _dlen@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _odlen@GOTPAGE
Lloh29:
	ldr	x9, [x9, _odlen@GOTPAGEOFF]
Lloh30:
	str	w8, [x9]
Lloh31:
	adrp	x8, _ulen@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ulen@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _oulen@GOTPAGE
Lloh35:
	ldr	x9, [x9, _oulen@GOTPAGEOFF]
Lloh36:
	str	w8, [x9]
	mov	w19, #1
	strb	w19, [x20, _initswap.once@PAGEOFF]
	mov	w0, #12
	bl	_dsinit
	b	LBB0_5
LBB0_4:
Lloh37:
	adrp	x0, l_.str@PAGE
Lloh38:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	mov	w19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_initswap.once,1,2 ; @initswap.once
	.comm	_hlen,4,2                       ; @hlen
	.comm	_blocksize,4,2                  ; @blocksize
	.comm	_header,4,2                     ; @header
	.comm	_pagesize,4,2                   ; @pagesize
	.comm	_kd,4,2                         ; @kd
	.comm	_kvmsw,4,2                      ; @kvmsw
	.comm	_NSWAP,4,2                      ; @NSWAP
	.comm	_kvnsw,4,2                      ; @kvnsw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"systat: kvm_getswapinfo failed"

	.comm	_okvnsw,4,2                     ; @okvnsw
	.comm	_dlen,4,2                       ; @dlen
	.comm	_odlen,4,2                      ; @odlen
	.comm	_ulen,4,2                       ; @ulen
	.comm	_oulen,4,2                      ; @oulen
.subsections_via_symbols
