	.file	"extr_mon_client.c_ceph_monc_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"init\n"
	.text
	.p2align 4
	.globl	ceph_monc_init
	.type	ceph_monc_init, @function
ceph_monc_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	call	dout@PLT
	mov	edx, 120
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	mov	QWORD PTR 80[rbx], rbp
	lea	rdi, 112[rbx]
	mov	QWORD PTR 16[rbx], 0
	call	mutex_init@PLT
	mov	rdi, rbx
	call	build_initial_monmap@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L20
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 4[rax]
	mov	esi, DWORD PTR [rax]
	call	ceph_auth_init@PLT
	mov	QWORD PTR 24[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L21
	mov	rdx, QWORD PTR 24[rbx]
	mov	eax, DWORD PTR CEPH_ENTITY_TYPE_AUTH[rip]
	mov	ecx, 1
	mov	esi, 4
	or	eax, DWORD PTR CEPH_ENTITY_TYPE_MON[rip]
	or	eax, DWORD PTR CEPH_ENTITY_TYPE_OSD[rip]
	or	eax, DWORD PTR CEPH_ENTITY_TYPE_MDS[rip]
	mov	DWORD PTR [rdx], eax
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR CEPH_MSG_MON_SUBSCRIBE_ACK[rip]
	mov	ebp, DWORD PTR ENOMEM[rip]
	call	ceph_msg_new@PLT
	mov	QWORD PTR 32[rbx], rax
	test	rax, rax
	je	.L5
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR CEPH_MSG_MON_SUBSCRIBE[rip]
	mov	ecx, 1
	mov	esi, 128
	call	ceph_msg_new@PLT
	mov	QWORD PTR 40[rbx], rax
	test	rax, rax
	je	.L6
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR CEPH_MSG_AUTH_REPLY[rip]
	mov	ecx, 1
	mov	esi, 4096
	call	ceph_msg_new@PLT
	mov	QWORD PTR 48[rbx], rax
	test	rax, rax
	je	.L7
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR CEPH_MSG_AUTH[rip]
	mov	ecx, 1
	mov	esi, 4096
	call	ceph_msg_new@PLT
	mov	QWORD PTR 104[rbx], 0
	mov	QWORD PTR 96[rbx], rax
	test	rax, rax
	je	.L22
	mov	rcx, QWORD PTR 80[rbx]
	lea	rdi, 88[rbx]
	lea	rdx, mon_con_ops[rip]
	mov	rsi, rbx
	call	ceph_con_init@PLT
	mov	eax, 4294967295
	mov	DWORD PTR 8[rbx], 1
	lea	rdi, 76[rbx]
	mov	QWORD PTR [rbx], rax
	mov	esi, DWORD PTR delayed_work[rip]
	call	INIT_DELAYED_WORK@PLT
	mov	eax, DWORD PTR RB_ROOT[rip]
	mov	QWORD PTR 64[rbx], 0
	mov	DWORD PTR 72[rbx], eax
	mov	eax, DWORD PTR CEPH_FS_CLUSTER_ID_NONE[rip]
	mov	DWORD PTR 56[rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, QWORD PTR 48[rbx]
	call	ceph_msg_put@PLT
.L7:
	mov	rdi, QWORD PTR 40[rbx]
	call	ceph_msg_put@PLT
.L6:
	mov	rdi, QWORD PTR 32[rbx]
	call	ceph_msg_put@PLT
.L5:
	mov	rdi, QWORD PTR 24[rbx]
	neg	ebp
	mov	r12d, ebp
	call	ceph_auth_destroy@PLT
.L4:
	mov	rdi, QWORD PTR 16[rbx]
	call	kfree@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ceph_monc_init, .-ceph_monc_init
	.comm	mon_con_ops,4,4
	.comm	delayed_work,4,4
	.comm	RB_ROOT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	CEPH_MSG_MON_SUBSCRIBE_ACK,4,4
	.comm	CEPH_MSG_MON_SUBSCRIBE,4,4
	.comm	CEPH_MSG_AUTH_REPLY,4,4
	.comm	CEPH_MSG_AUTH,4,4
	.comm	CEPH_FS_CLUSTER_ID_NONE,4,4
	.comm	CEPH_ENTITY_TYPE_OSD,4,4
	.comm	CEPH_ENTITY_TYPE_MON,4,4
	.comm	CEPH_ENTITY_TYPE_MDS,4,4
	.comm	CEPH_ENTITY_TYPE_AUTH,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_mon_client.c_ceph_monc_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"init\012\000"
	.text
	.align	2
	.global	ceph_monc_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	ceph_monc_init, %function
ceph_monc_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r1
	ldr	r0, .L23
	bl	dout
	mov	r2, #68
	mov	r1, #0
	mov	r0, r4
	bl	memset
	str	r6, [r4, #48]
	add	r0, r4, #64
	bl	mutex_init
	mov	r0, r4
	bl	build_initial_monmap
	subs	r5, r0, #0
	beq	.L20
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	ldr	r3, [r6, #4]
	ldr	r1, [r3]
	ldr	r0, [r3, #4]
	bl	ceph_auth_init
	str	r0, [r4, #16]
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L21
	ldr	r1, .L23+4
	ldr	r3, .L23+8
	ldr	r2, .L23+12
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r1, .L23+16
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r0
	orr	r3, r3, r2
	ldr	r2, [r4, #16]
	orr	r3, r3, r1
	ldr	r6, .L23+20
	ldr	r1, .L23+24
	str	r3, [r2]
	ldr	ip, .L23+28
	ldr	r0, [r1]
	mov	r3, #1
	mov	r1, #4
	ldr	r2, [r6]
	ldr	r7, [ip]
	bl	ceph_msg_new
	cmp	r0, #0
	str	r0, [r4, #20]
	beq	.L5
	ldr	r2, .L23+32
	mov	r3, #1
	ldr	r0, [r2]
	mov	r1, #128
	ldr	r2, [r6]
	bl	ceph_msg_new
	cmp	r0, #0
	str	r0, [r4, #24]
	beq	.L6
	ldr	r2, .L23+36
	mov	r3, #1
	ldr	r0, [r2]
	mov	r1, #4096
	ldr	r2, [r6]
	bl	ceph_msg_new
	cmp	r0, #0
	str	r0, [r4, #28]
	beq	.L7
	ldr	r3, .L23+40
	mov	r1, #4096
	ldr	r0, [r3]
	ldr	r2, [r6]
	mov	r3, #1
	bl	ceph_msg_new
	cmp	r0, #0
	str	r0, [r4, #56]
	str	r5, [r4, #60]
	beq	.L22
	mov	r1, r4
	ldr	r3, [r4, #48]
	ldr	r2, .L23+44
	add	r0, r4, #52
	bl	ceph_con_init
	mov	r2, #1
	mvn	r1, #0
	ldr	r3, .L23+48
	stm	r4, {r1, r5}
	str	r2, [r4, #8]
	ldr	r1, [r3]
	add	r0, r4, #44
	bl	INIT_DELAYED_WORK
	ldr	r2, .L23+52
	ldr	r3, .L23+56
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r5, [r4, #36]
	str	r2, [r4, #40]
	str	r3, [r4, #32]
	b	.L1
.L22:
	ldr	r0, [r4, #28]
	bl	ceph_msg_put
.L7:
	ldr	r0, [r4, #24]
	bl	ceph_msg_put
.L6:
	ldr	r0, [r4, #20]
	bl	ceph_msg_put
.L5:
	ldr	r0, [r4, #16]
	rsb	r5, r7, #0
	bl	ceph_auth_destroy
.L4:
	ldr	r0, [r4, #12]
	bl	kfree
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	ldr	r0, [r4, #16]
	bl	PTR_ERR
	mov	r5, r0
	b	.L4
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	CEPH_ENTITY_TYPE_MON
	.word	CEPH_ENTITY_TYPE_AUTH
	.word	CEPH_ENTITY_TYPE_OSD
	.word	CEPH_ENTITY_TYPE_MDS
	.word	GFP_KERNEL
	.word	CEPH_MSG_MON_SUBSCRIBE_ACK
	.word	ENOMEM
	.word	CEPH_MSG_MON_SUBSCRIBE
	.word	CEPH_MSG_AUTH_REPLY
	.word	CEPH_MSG_AUTH
	.word	mon_con_ops
	.word	delayed_work
	.word	RB_ROOT
	.word	CEPH_FS_CLUSTER_ID_NONE
	.size	ceph_monc_init, .-ceph_monc_init
	.comm	mon_con_ops,4,4
	.comm	delayed_work,4,4
	.comm	RB_ROOT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	CEPH_MSG_MON_SUBSCRIBE_ACK,4,4
	.comm	CEPH_MSG_MON_SUBSCRIBE,4,4
	.comm	CEPH_MSG_AUTH_REPLY,4,4
	.comm	CEPH_MSG_AUTH,4,4
	.comm	CEPH_FS_CLUSTER_ID_NONE,4,4
	.comm	CEPH_ENTITY_TYPE_OSD,4,4
	.comm	CEPH_ENTITY_TYPE_MON,4,4
	.comm	CEPH_ENTITY_TYPE_MDS,4,4
	.comm	CEPH_ENTITY_TYPE_AUTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
