	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readvar
_readvar:                               ## @readvar
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r12
	movq	_namelist@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movslq	%edx, %rbx
	shlq	$4, %rbx
	movl	8(%rax,%rbx), %esi
	movq	%rcx, %rdx
	movq	%r15, %rcx
	callq	_kvm_read
	testq	%rax, %rax
	js	LBB0_7
## %bb.2:
	xorl	%ecx, %ecx
	cmpq	%r15, %rax
	je	LBB0_12
## %bb.3:
	movq	(%r14), %rcx
	movq	(%rcx,%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rdx
	movq	%rax, %rcx
	jmp	LBB0_10
LBB0_4:
	movq	%rsi, %r14
	movq	%r15, -40(%rbp)
	leaq	-40(%rbp), %rdx
	movq	%rsi, %rdi
	movq	%rcx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.5:
	movq	-40(%rbp), %rcx
	cmpq	%r15, %rcx
	jne	LBB0_9
## %bb.6:
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_7:
	movq	(%r14), %rax
	movq	(%rax,%rbx), %r14
	movq	%r12, %rdi
	callq	_kvm_geterr
	movslq	%eax, %rdx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_warn
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
LBB0_10:
	xorl	%eax, %eax
	callq	_warnx
LBB0_11:
	movl	$1, %ecx
LBB0_12:
	movl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_namelist,8,3                   ## @namelist
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kvm_read(%s): %s"

L_.str.1:                               ## @.str.1
	.asciz	"kvm_read(%s): expected %zu bytes, got %zd bytes"

L_.str.2:                               ## @.str.2
	.asciz	"sysctl(%s...) failed"

L_.str.3:                               ## @.str.3
	.asciz	"sysctl(%s...): expected %lu, got %lu"

	.no_dead_strip	_readvar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readvar
_readvar:                               ; @readvar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
                                        ; kill: def $w2 killed $w2 def $x2
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x20, _namelist@GOTPAGE
Lloh1:
	ldr	x20, [x20, _namelist@GOTPAGEOFF]
	ldr	x8, [x20]
	sxtw	x22, w2
	add	x8, x8, w2, sxtw #4
	ldr	w1, [x8, #8]
	mov	x2, x3
	mov	x3, x19
	bl	_kvm_read
	tbnz	x0, #63, LBB0_7
; %bb.2:
	cmp	x0, x19
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x20]
	lsl	x9, x22, #4
	ldr	x1, [x8, x9]
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_4:
	mov	x20, x1
	str	x19, [sp, #8]
	add	x2, sp, #8
	mov	x0, x1
	mov	x1, x3
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.5:
	ldr	x8, [sp, #8]
	cmp	x8, x19
	b.ne	LBB0_9
LBB0_6:
	mov	w0, #0
	b	LBB0_13
LBB0_7:
	ldr	x8, [x20]
	lsl	x9, x22, #4
	ldr	x19, [x8, x9]
	mov	x0, x21
	bl	_kvm_geterr
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	b	LBB0_11
LBB0_8:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_warn
	b	LBB0_12
LBB0_9:
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
LBB0_10:
	mov	x2, x19
LBB0_11:
	bl	_warnx
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_namelist,8,3                   ; @namelist
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kvm_read(%s): %s"

l_.str.1:                               ; @.str.1
	.asciz	"kvm_read(%s): expected %zu bytes, got %zd bytes"

l_.str.2:                               ; @.str.2
	.asciz	"sysctl(%s...) failed"

l_.str.3:                               ; @.str.3
	.asciz	"sysctl(%s...): expected %lu, got %lu"

	.no_dead_strip	_readvar
.subsections_via_symbols
