	.file	"extr_memstat_uma.c_kread_string.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kread_string, @function
kread_string:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movsx	rbp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	ebp, ebp
	jle	.L7
	mov	r12, rdi
	mov	r14, rsi
	mov	rbx, rdx
	xor	r15d, r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	rax, 1
	jne	.L12
	cmp	BYTE PTR [rbx], 0
	je	.L8
	add	r15d, 1
	add	r14, 1
	add	rbx, 1
	cmp	ebp, r15d
	je	.L13
.L6:
	mov	ecx, 1
	mov	rdx, rbx
	mov	rsi, r14
	mov	rdi, r12
	call	kvm_read@PLT
	test	rax, rax
	jns	.L3
	mov	eax, DWORD PTR MEMSTAT_ERROR_KVM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR MEMSTAT_ERROR_KVM_SHORTREAD[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	sub	rbp, 1
.L2:
	mov	BYTE PTR 0[r13+rbp], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	mov	rbp, -1
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	kread_string, .-kread_string
	.comm	MEMSTAT_ERROR_KVM_SHORTREAD,4,4
	.comm	MEMSTAT_ERROR_KVM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_memstat_uma.c_kread_string.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kread_string, %function
kread_string:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r6, r3, #0
	mov	r8, r2
	ble	.L7
	mov	r7, r0
	mov	r9, r1
	mov	r4, r2
	mov	r5, #0
	b	.L6
.L3:
	cmp	r0, #1
	bne	.L12
	ldrb	r0, [r4]	@ zero_extendqisi2
	add	r4, r4, #1
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	cmp	r6, r3
	beq	.L2
	mov	r5, r3
.L6:
	mov	r3, #1
	mov	r2, r4
	mov	r0, r7
	add	r1, r9, r5
	bl	kvm_read
	cmp	r0, #0
	add	r3, r5, #1
	bge	.L3
	ldr	r3, .L13
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	mvn	r5, #0
.L2:
	mov	r0, #0
	strb	r0, [r8, r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	MEMSTAT_ERROR_KVM
	.word	MEMSTAT_ERROR_KVM_SHORTREAD
	.size	kread_string, .-kread_string
	.comm	MEMSTAT_ERROR_KVM_SHORTREAD,4,4
	.comm	MEMSTAT_ERROR_KVM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
