	.file	"extr_kern_resource.c_kern_getrusage.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kern_getrusage
	.type	kern_getrusage, @function
kern_getrusage:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR [rdi]
	mov	rdi, r13
	call	PROC_LOCK@PLT
	cmp	ebx, 129
	je	.L2
	cmp	ebx, 130
	je	.L3
	cmp	ebx, 128
	je	.L10
	mov	r12d, DWORD PTR EINVAL[rip]
.L6:
	mov	rdi, r13
	call	PROC_UNLOCK@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdx, 4[r12]
	mov	rcx, r12
	mov	rsi, r12
	mov	rdi, r13
	call	rufetchcalc@PLT
	xor	r12d, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r13
	call	PROC_STATLOCK@PLT
	mov	rdi, rbp
	call	thread_lock@PLT
	mov	rsi, r12
	mov	rdi, rbp
	xor	r12d, r12d
	call	rufetchtd@PLT
	mov	rdi, rbp
	call	thread_unlock@PLT
	mov	rdi, r13
	call	PROC_STATUNLOCK@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 0[r13]
	lea	rsi, 4[r12]
	mov	rdx, r12
	mov	rdi, r13
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [r12], rax
	xor	r12d, r12d
	call	calccru@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	kern_getrusage, .-kern_getrusage
	.comm	EINVAL,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_kern_resource.c_kern_getrusage.c"
	.text
	.align	2
	.global	kern_getrusage
	.syntax unified
	.arm
	.fpu softvfp
	.type	kern_getrusage, %function
kern_getrusage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r6, [r0]
	mov	r5, r0
	mov	r0, r6
	mov	r7, r2
	bl	PROC_LOCK
	cmp	r4, #129
	beq	.L2
	cmp	r4, #130
	beq	.L3
	cmp	r4, #128
	beq	.L10
	ldr	r3, .L11
	ldr	r4, [r3]
.L6:
	mov	r0, r6
	bl	PROC_UNLOCK
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r3, r7
	mov	r1, r7
	mov	r0, r6
	add	r2, r7, #4
	bl	rufetchcalc
	mov	r4, #0
	b	.L6
.L10:
	mov	r0, r6
	bl	PROC_STATLOCK
	mov	r0, r5
	bl	thread_lock
	mov	r1, r7
	mov	r0, r5
	bl	rufetchtd
	mov	r0, r5
	bl	thread_unlock
	mov	r0, r6
	bl	PROC_STATUNLOCK
	mov	r4, #0
	b	.L6
.L3:
	ldr	r3, [r6]
	mov	r2, r7
	ldm	r3, {r0, r1}
	stm	r7, {r0, r1}
	mov	r0, r6
	add	r1, r7, #4
	bl	calccru
	mov	r4, #0
	b	.L6
.L12:
	.align	2
.L11:
	.word	EINVAL
	.size	kern_getrusage, .-kern_getrusage
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
