	.file	"extr_caps.c_ceph_cap_string.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ceph_cap_string
	.type	ceph_cap_string, @function
ceph_cap_string:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edi
	lea	rdi, cap_str_lock[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	spin_lock@PLT
	mov	rbp, QWORD PTR last_cap_str[rip]
	lea	rax, 1[rbp]
	cmp	rax, QWORD PTR MAX_CAP_STR[rip]
	mov	QWORD PTR last_cap_str[rip], rax
	jne	.L2
	mov	QWORD PTR last_cap_str[rip], 0
.L2:
	lea	rdi, cap_str_lock[rip]
	movsx	rbp, ebp
	call	spin_unlock@PLT
	mov	rax, QWORD PTR cap_str[rip]
	mov	rax, QWORD PTR [rax+rbp*8]
	test	DWORD PTR CEPH_CAP_PIN[rip], ebx
	je	.L3
	mov	BYTE PTR [rax], 112
	add	rax, 1
.L3:
	mov	ecx, DWORD PTR CEPH_CAP_SAUTH[rip]
	mov	esi, ebx
	sar	esi, cl
	and	esi, 3
	jne	.L26
	mov	ecx, DWORD PTR CEPH_CAP_SLINK[rip]
	mov	esi, ebx
	sar	esi, cl
	and	esi, 3
	jne	.L27
.L5:
	mov	ecx, DWORD PTR CEPH_CAP_SXATTR[rip]
	mov	esi, ebx
	sar	esi, cl
	and	esi, 3
	jne	.L28
.L6:
	mov	ecx, DWORD PTR CEPH_CAP_SFILE[rip]
	sar	ebx, cl
	test	ebx, ebx
	jne	.L29
.L7:
	mov	rdx, QWORD PTR cap_str[rip]
	cmp	QWORD PTR [rdx+rbp*8], rax
	je	.L30
.L8:
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR cap_str[rip]
	mov	rax, QWORD PTR [rax+rbp*8]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	BYTE PTR [rax], 65
	lea	rdi, 1[rax]
	call	gcap_string@PLT
	mov	ecx, DWORD PTR CEPH_CAP_SLINK[rip]
	mov	esi, ebx
	sar	esi, cl
	and	esi, 3
	je	.L5
.L27:
	mov	BYTE PTR [rax], 76
	lea	rdi, 1[rax]
	call	gcap_string@PLT
	mov	ecx, DWORD PTR CEPH_CAP_SXATTR[rip]
	mov	esi, ebx
	sar	esi, cl
	and	esi, 3
	je	.L6
.L28:
	mov	BYTE PTR [rax], 88
	lea	rdi, 1[rax]
	call	gcap_string@PLT
	mov	ecx, DWORD PTR CEPH_CAP_SFILE[rip]
	sar	ebx, cl
	test	ebx, ebx
	je	.L7
.L29:
	mov	BYTE PTR [rax], 70
	lea	rdi, 1[rax]
	mov	esi, ebx
	call	gcap_string@PLT
	mov	rdx, QWORD PTR cap_str[rip]
	cmp	QWORD PTR [rdx+rbp*8], rax
	jne	.L8
.L30:
	mov	BYTE PTR [rax], 45
	add	rax, 1
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	ceph_cap_string, .-ceph_cap_string
	.comm	last_cap_str,8,8
	.comm	cap_str_lock,4,4
	.comm	cap_str,8,8
	.comm	MAX_CAP_STR,8,8
	.comm	CEPH_CAP_SXATTR,4,4
	.comm	CEPH_CAP_SLINK,4,4
	.comm	CEPH_CAP_SFILE,4,4
	.comm	CEPH_CAP_SAUTH,4,4
	.comm	CEPH_CAP_PIN,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_caps.c_ceph_cap_string.c"
	.text
	.align	2
	.global	ceph_cap_string
	.syntax unified
	.arm
	.fpu softvfp
	.type	ceph_cap_string, %function
ceph_cap_string:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, .L30
	bl	spin_lock
	ldr	r3, .L30+4
	ldr	r2, .L30+8
	ldr	r5, [r3]
	ldr	r1, [r2]
	add	r2, r5, #1
	cmp	r2, r1
	str	r2, [r3]
	moveq	r2, #0
	ldr	r0, .L30
	streq	r2, [r3]
	bl	spin_unlock
	ldr	r3, .L30+12
	ldr	r6, .L30+16
	ldr	r2, [r3]
	ldr	r3, [r6]
	tst	r4, r2
	ldr	r0, [r3, r5, lsl #2]
	movne	r3, #112
	strbne	r3, [r0], #1
	ldr	r3, .L30+20
	ldr	r1, [r3]
	asr	r1, r4, r1
	ands	r1, r1, #3
	bne	.L26
.L4:
	ldr	r3, .L30+24
	ldr	r1, [r3]
	asr	r1, r4, r1
	ands	r1, r1, #3
	bne	.L27
.L5:
	ldr	r3, .L30+28
	ldr	r1, [r3]
	asr	r1, r4, r1
	ands	r1, r1, #3
	bne	.L28
.L6:
	ldr	r3, .L30+32
	ldr	r1, [r3]
	asrs	r1, r4, r1
	bne	.L29
.L7:
	ldr	r3, [r6]
	ldr	r3, [r3, r5, lsl #2]
	cmp	r3, r0
	moveq	r3, #45
	strbeq	r3, [r0], #1
	mov	r3, #0
	strb	r3, [r0]
	ldr	r3, [r6]
	ldr	r0, [r3, r5, lsl #2]
	pop	{r4, r5, r6, pc}
.L26:
	mov	r3, #65
	strb	r3, [r0], #1
	bl	gcap_string
	b	.L4
.L29:
	mov	r3, #70
	strb	r3, [r0], #1
	bl	gcap_string
	b	.L7
.L28:
	mov	r3, #88
	strb	r3, [r0], #1
	bl	gcap_string
	b	.L6
.L27:
	mov	r3, #76
	strb	r3, [r0], #1
	bl	gcap_string
	b	.L5
.L31:
	.align	2
.L30:
	.word	cap_str_lock
	.word	last_cap_str
	.word	MAX_CAP_STR
	.word	CEPH_CAP_PIN
	.word	cap_str
	.word	CEPH_CAP_SAUTH
	.word	CEPH_CAP_SLINK
	.word	CEPH_CAP_SXATTR
	.word	CEPH_CAP_SFILE
	.size	ceph_cap_string, .-ceph_cap_string
	.comm	last_cap_str,4,4
	.comm	cap_str_lock,4,4
	.comm	cap_str,4,4
	.comm	MAX_CAP_STR,4,4
	.comm	CEPH_CAP_SXATTR,4,4
	.comm	CEPH_CAP_SLINK,4,4
	.comm	CEPH_CAP_SFILE,4,4
	.comm	CEPH_CAP_SAUTH,4,4
	.comm	CEPH_CAP_PIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
