	.file	"extr_nfs_fha.c_fha_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fhalock"
.LC1:
	.string	"enable"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Enable NFS File Handle Affinity (FHA)"
	.section	.rodata.str1.1
.LC3:
	.string	"read"
.LC4:
	.string	"Enable NFS FHA read locality"
.LC5:
	.string	"write"
.LC6:
	.string	"Enable NFS FHA write locality"
.LC7:
	.string	"bin_shift"
	.section	.rodata.str1.8
	.align 8
.LC8:
	.string	"Maximum locality distance 2^(bin_shift) bytes"
	.section	.rodata.str1.1
.LC9:
	.string	"max_nfsds_per_fh"
	.section	.rodata.str1.8
	.align 8
.LC10:
	.string	"Maximum nfsd threads that should be working on requests for the same file handle"
	.section	.rodata.str1.1
.LC11:
	.string	"max_reqs_per_nfsd"
	.section	.rodata.str1.8
	.align 8
.LC12:
	.string	"Maximum requests that single nfsd thread should be working on at any time"
	.section	.rodata.str1.1
.LC13:
	.string	"fhe_stats"
.LC14:
	.string	""
.LC15:
	.string	"A"
	.text
	.p2align 4
	.globl	fha_init
	.type	fha_init, @function
fha_init:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR FHA_HASH_SIZE[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	lea	r12, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 40[rbp]
	mov	ecx, DWORD PTR MTX_DEF[rip]
	xor	edx, edx
	mov	rsi, r12
	lea	rdi, [rax+rbx*4]
	add	rbx, 1
	call	mtx_init@PLT
	cmp	DWORD PTR FHA_HASH_SIZE[rip], ebx
	jg	.L3
.L2:
	mov	eax, DWORD PTR FHA_DEF_ENABLE[rip]
	mov	edi, DWORD PTR 4[rbp]
	lea	r12, 8[rbp]
	mov	ebx, DWORD PTR CTLFLAG_RWTUN[rip]
	mov	r13d, DWORD PTR OID_AUTO[rip]
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR FHA_DEF_READ[rip]
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR FHA_DEF_WRITE[rip]
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR FHA_DEF_BIN_SHIFT[rip]
	mov	DWORD PTR 20[rbp], eax
	mov	eax, DWORD PTR FHA_DEF_MAX_NFSDS_PER_FH[rip]
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR FHA_DEF_MAX_REQS_PER_NFSD[rip]
	mov	DWORD PTR 12[rbp], eax
	call	SYSCTL_CHILDREN@PLT
	lea	r9, 32[rbp]
	mov	r8d, ebx
	mov	edx, r13d
	mov	esi, eax
	lea	rax, .LC2[rip]
	lea	rcx, .LC1[rip]
	mov	rdi, r12
	push	rax
	.cfi_def_cfa_offset 56
	push	0
	.cfi_def_cfa_offset 64
	call	SYSCTL_ADD_UINT@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	ebx, DWORD PTR CTLFLAG_RWTUN[rip]
	mov	r13d, DWORD PTR OID_AUTO[rip]
	call	SYSCTL_CHILDREN@PLT
	lea	r9, 28[rbp]
	mov	r8d, ebx
	mov	rdi, r12
	mov	esi, eax
	lea	rax, .LC4[rip]
	mov	edx, r13d
	push	rax
	.cfi_def_cfa_offset 72
	lea	rcx, .LC3[rip]
	push	0
	.cfi_def_cfa_offset 80
	call	SYSCTL_ADD_UINT@PLT
	mov	edi, DWORD PTR 4[rbp]
	add	rsp, 32
	.cfi_def_cfa_offset 48
	mov	ebx, DWORD PTR CTLFLAG_RWTUN[rip]
	mov	r13d, DWORD PTR OID_AUTO[rip]
	call	SYSCTL_CHILDREN@PLT
	lea	r9, 24[rbp]
	mov	r8d, ebx
	mov	rdi, r12
	mov	esi, eax
	lea	rax, .LC6[rip]
	mov	edx, r13d
	push	rax
	.cfi_def_cfa_offset 56
	lea	rcx, .LC5[rip]
	push	0
	.cfi_def_cfa_offset 64
	call	SYSCTL_ADD_UINT@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	ebx, DWORD PTR CTLFLAG_RWTUN[rip]
	mov	r13d, DWORD PTR OID_AUTO[rip]
	call	SYSCTL_CHILDREN@PLT
	lea	r9, 20[rbp]
	mov	r8d, ebx
	mov	rdi, r12
	mov	esi, eax
	lea	rax, .LC8[rip]
	mov	edx, r13d
	push	rax
	.cfi_def_cfa_offset 72
	lea	rcx, .LC7[rip]
	push	0
	.cfi_def_cfa_offset 80
	call	SYSCTL_ADD_UINT@PLT
	mov	edi, DWORD PTR 4[rbp]
	add	rsp, 32
	.cfi_def_cfa_offset 48
	mov	ebx, DWORD PTR CTLFLAG_RWTUN[rip]
	mov	r13d, DWORD PTR OID_AUTO[rip]
	call	SYSCTL_CHILDREN@PLT
	lea	r9, 16[rbp]
	mov	r8d, ebx
	mov	rdi, r12
	mov	esi, eax
	lea	rax, .LC10[rip]
	mov	edx, r13d
	push	rax
	.cfi_def_cfa_offset 56
	lea	rcx, .LC9[rip]
	push	0
	.cfi_def_cfa_offset 64
	call	SYSCTL_ADD_UINT@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	ebx, DWORD PTR CTLFLAG_RWTUN[rip]
	mov	r13d, DWORD PTR OID_AUTO[rip]
	call	SYSCTL_CHILDREN@PLT
	lea	r9, 12[rbp]
	mov	r8d, ebx
	mov	rdi, r12
	mov	esi, eax
	lea	rax, .LC12[rip]
	mov	edx, r13d
	push	rax
	.cfi_def_cfa_offset 72
	lea	rcx, .LC11[rip]
	push	0
	.cfi_def_cfa_offset 80
	call	SYSCTL_ADD_UINT@PLT
	mov	edi, DWORD PTR 4[rbp]
	add	rsp, 32
	.cfi_def_cfa_offset 48
	mov	r14d, DWORD PTR 0[rbp]
	mov	r13d, DWORD PTR OID_AUTO[rip]
	mov	ebx, DWORD PTR CTLTYPE_STRING[rip]
	or	ebx, DWORD PTR CTLFLAG_RD[rip]
	call	SYSCTL_CHILDREN@PLT
	mov	r8d, ebx
	mov	edx, r13d
	mov	rdi, r12
	mov	esi, eax
	lea	rax, .LC14[rip]
	xor	r9d, r9d
	push	rax
	.cfi_def_cfa_offset 56
	lea	rax, .LC15[rip]
	lea	rcx, .LC13[rip]
	push	rax
	.cfi_def_cfa_offset 64
	push	r14
	.cfi_def_cfa_offset 72
	push	0
	.cfi_def_cfa_offset 80
	call	SYSCTL_ADD_OID@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	fha_init, .-fha_init
	.comm	OID_AUTO,4,4
	.comm	MTX_DEF,4,4
	.comm	FHA_HASH_SIZE,4,4
	.comm	FHA_DEF_WRITE,4,4
	.comm	FHA_DEF_READ,4,4
	.comm	FHA_DEF_MAX_REQS_PER_NFSD,4,4
	.comm	FHA_DEF_MAX_NFSDS_PER_FH,4,4
	.comm	FHA_DEF_ENABLE,4,4
	.comm	FHA_DEF_BIN_SHIFT,4,4
	.comm	CTLTYPE_STRING,4,4
	.comm	CTLFLAG_RWTUN,4,4
	.comm	CTLFLAG_RD,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_nfs_fha.c_fha_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fhalock\000"
	.align	2
.LC1:
	.ascii	"enable\000"
	.align	2
.LC2:
	.ascii	"Enable NFS File Handle Affinity (FHA)\000"
	.align	2
.LC3:
	.ascii	"read\000"
	.align	2
.LC4:
	.ascii	"Enable NFS FHA read locality\000"
	.align	2
.LC5:
	.ascii	"write\000"
	.align	2
.LC6:
	.ascii	"Enable NFS FHA write locality\000"
	.align	2
.LC7:
	.ascii	"bin_shift\000"
	.align	2
.LC8:
	.ascii	"Maximum locality distance 2^(bin_shift) bytes\000"
	.align	2
.LC9:
	.ascii	"max_nfsds_per_fh\000"
	.align	2
.LC10:
	.ascii	"Maximum nfsd threads that should be working on requ"
	.ascii	"ests for the same file handle\000"
	.align	2
.LC11:
	.ascii	"max_reqs_per_nfsd\000"
	.align	2
.LC12:
	.ascii	"Maximum requests that single nfsd thread should be "
	.ascii	"working on at any time\000"
	.align	2
.LC13:
	.ascii	"fhe_stats\000"
	.align	2
.LC14:
	.ascii	"\000"
	.align	2
.LC15:
	.ascii	"A\000"
	.text
	.align	2
	.global	fha_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	fha_init, %function
fha_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L7
	mov	r5, r0
	ldr	r3, [r6]
	sub	sp, sp, #24
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	ldr	r8, .L7+4
	ldr	r7, .L7+8
.L3:
	ldr	r0, [r5, #36]
	ldr	r3, [r8]
	add	r0, r0, r4, lsl #2
	mov	r2, #0
	mov	r1, r7
	bl	mtx_init
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L2:
	ldr	lr, .L7+12
	ldr	ip, .L7+16
	ldr	r0, .L7+20
	ldr	r1, .L7+24
	ldr	r2, .L7+28
	ldr	r3, .L7+32
	ldr	lr, [lr]
	ldr	ip, [ip]
	ldr	r0, [r0]
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	lr, [r5, #32]
	mov	r4, #0
	str	ip, [r5, #28]
	str	r0, [r5, #24]
	str	r1, [r5, #20]
	str	r2, [r5, #16]
	str	r3, [r5, #12]
	ldr	r0, [r5, #4]
	bl	SYSCTL_CHILDREN
	ldr	r8, .L7+36
	ldr	r7, .L7+40
	ldr	r2, [r8]
	ldr	ip, .L7+44
	add	r6, r5, #8
	add	r3, r5, #32
	str	r2, [sp]
	str	r4, [sp, #8]
	ldr	r2, [r7]
	mov	r1, r0
	str	ip, [sp, #12]
	str	r3, [sp, #4]
	mov	r0, r6
	ldr	r3, .L7+48
	bl	SYSCTL_ADD_UINT
	ldr	r0, [r5, #4]
	bl	SYSCTL_CHILDREN
	ldr	r2, [r8]
	ldr	ip, .L7+52
	add	r3, r5, #28
	str	r4, [sp, #8]
	str	r2, [sp]
	ldr	r2, [r7]
	mov	r1, r0
	str	ip, [sp, #12]
	str	r3, [sp, #4]
	mov	r0, r6
	ldr	r3, .L7+56
	bl	SYSCTL_ADD_UINT
	ldr	r0, [r5, #4]
	bl	SYSCTL_CHILDREN
	ldr	r2, [r8]
	ldr	ip, .L7+60
	add	r3, r5, #24
	str	r4, [sp, #8]
	str	r2, [sp]
	ldr	r2, [r7]
	mov	r1, r0
	str	ip, [sp, #12]
	str	r3, [sp, #4]
	mov	r0, r6
	ldr	r3, .L7+64
	bl	SYSCTL_ADD_UINT
	ldr	r0, [r5, #4]
	bl	SYSCTL_CHILDREN
	ldr	r2, [r8]
	ldr	ip, .L7+68
	add	r3, r5, #20
	str	r4, [sp, #8]
	str	r2, [sp]
	ldr	r2, [r7]
	mov	r1, r0
	str	ip, [sp, #12]
	str	r3, [sp, #4]
	mov	r0, r6
	ldr	r3, .L7+72
	bl	SYSCTL_ADD_UINT
	ldr	r0, [r5, #4]
	bl	SYSCTL_CHILDREN
	ldr	r2, [r8]
	ldr	ip, .L7+76
	add	r3, r5, #16
	str	r4, [sp, #8]
	str	r2, [sp]
	ldr	r2, [r7]
	mov	r1, r0
	str	ip, [sp, #12]
	str	r3, [sp, #4]
	mov	r0, r6
	ldr	r3, .L7+80
	bl	SYSCTL_ADD_UINT
	ldr	r0, [r5, #4]
	bl	SYSCTL_CHILDREN
	ldr	r2, [r8]
	ldr	ip, .L7+84
	add	r3, r5, #12
	str	r2, [sp]
	str	r4, [sp, #8]
	ldr	r2, [r7]
	mov	r1, r0
	str	ip, [sp, #12]
	str	r3, [sp, #4]
	mov	r0, r6
	ldr	r3, .L7+88
	bl	SYSCTL_ADD_UINT
	ldr	r0, [r5, #4]
	bl	SYSCTL_CHILDREN
	ldr	r3, .L7+92
	ldr	r2, .L7+96
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r5, [r5]
	ldr	lr, .L7+100
	ldr	ip, .L7+104
	orr	r3, r3, r2
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	ldr	r2, [r7]
	mov	r1, r0
	str	r3, [sp]
	mov	r0, r6
	ldr	r3, .L7+108
	str	r5, [sp, #12]
	str	lr, [sp, #20]
	str	ip, [sp, #16]
	bl	SYSCTL_ADD_OID
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	FHA_HASH_SIZE
	.word	MTX_DEF
	.word	.LC0
	.word	FHA_DEF_ENABLE
	.word	FHA_DEF_READ
	.word	FHA_DEF_WRITE
	.word	FHA_DEF_BIN_SHIFT
	.word	FHA_DEF_MAX_NFSDS_PER_FH
	.word	FHA_DEF_MAX_REQS_PER_NFSD
	.word	CTLFLAG_RWTUN
	.word	OID_AUTO
	.word	.LC2
	.word	.LC1
	.word	.LC4
	.word	.LC3
	.word	.LC6
	.word	.LC5
	.word	.LC8
	.word	.LC7
	.word	.LC10
	.word	.LC9
	.word	.LC12
	.word	.LC11
	.word	CTLTYPE_STRING
	.word	CTLFLAG_RD
	.word	.LC14
	.word	.LC15
	.word	.LC13
	.size	fha_init, .-fha_init
	.comm	OID_AUTO,4,4
	.comm	MTX_DEF,4,4
	.comm	FHA_HASH_SIZE,4,4
	.comm	FHA_DEF_WRITE,4,4
	.comm	FHA_DEF_READ,4,4
	.comm	FHA_DEF_MAX_REQS_PER_NFSD,4,4
	.comm	FHA_DEF_MAX_NFSDS_PER_FH,4,4
	.comm	FHA_DEF_ENABLE,4,4
	.comm	FHA_DEF_BIN_SHIFT,4,4
	.comm	CTLTYPE_STRING,4,4
	.comm	CTLFLAG_RWTUN,4,4
	.comm	CTLFLAG_RD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
