	.file	"extr_ib_multicast.c_mcast_add_one.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mcast_add_one, @function
mcast_add_one:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	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
	movsx	rdi, DWORD PTR [rdi]
	add	rdi, 1
	sal	edi, 5
	call	kmalloc@PLT
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	mov	r13, rax
	call	rdma_start_port@PLT
	mov	rdi, rbp
	mov	DWORD PTR 0[r13], eax
	call	rdma_end_port@PLT
	mov	esi, DWORD PTR 0[r13]
	mov	DWORD PTR 4[r13], eax
	cmp	eax, esi
	js	.L3
	xor	r14d, r14d
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L5:
	add	esi, r14d
	mov	rdi, rbp
	call	rdma_cap_ib_mcast@PLT
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR 0[r13]
	mov	rbx, r14
	add	r12d, 1
	sal	rbx, 5
	add	rbx, QWORD PTR 24[r13]
	add	eax, r14d
	mov	QWORD PTR 24[rbx], r13
	lea	rdi, 16[rbx]
	mov	DWORD PTR [rbx], eax
	call	spin_lock_init@PLT
	mov	eax, DWORD PTR RB_ROOT[rip]
	lea	rdi, 8[rbx]
	mov	DWORD PTR 12[rbx], eax
	call	init_completion@PLT
	lea	rdi, 4[rbx]
	mov	esi, 1
	call	atomic_set@PLT
.L4:
	mov	esi, DWORD PTR 0[r13]
	mov	eax, DWORD PTR 4[r13]
	add	r14, 1
	sub	eax, esi
	cmp	eax, r14d
	jge	.L5
	test	r12d, r12d
	je	.L3
	mov	QWORD PTR 16[r13], rbp
	mov	rdx, r13
	mov	rdi, rbp
	lea	rsi, mcast_client[rip]
	add	r13, 8
	call	ib_set_client_data@PLT
	mov	edx, DWORD PTR mcast_event_handler[rip]
	mov	rdi, r13
	mov	rsi, rbp
	call	INIT_IB_EVENT_HANDLER@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	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
	jmp	ib_register_event_handler@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	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
	jmp	kfree@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	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	mcast_add_one, .-mcast_add_one
	.comm	mcast_event_handler,4,4
	.comm	mcast_client,4,4
	.comm	RB_ROOT,4,4
	.comm	GFP_KERNEL,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_ib_multicast.c_mcast_add_one.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcast_add_one, %function
mcast_add_one:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	ldr	r0, [r0]
	ldr	r3, .L17
	add	r0, r0, r0, lsl #1
	lsl	r0, r0, #3
	ldr	r1, [r3]
	add	r0, r0, #20
	bl	kmalloc
	subs	r5, r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r0, r6
	bl	rdma_start_port
	mov	r3, r0
	mov	r0, r6
	str	r3, [r5]
	bl	rdma_end_port
	ldr	r1, [r5]
	str	r0, [r5, #4]
	sub	r0, r0, r1
	cmp	r0, #0
	blt	.L3
	mov	r7, #0
	mov	r4, r7
	ldr	r8, .L17+4
.L5:
	mov	r0, r6
	add	r1, r1, r4
	bl	rdma_cap_ib_mcast
	cmp	r0, #0
	add	r3, r4, r4, lsl #1
	beq	.L4
	ldr	r1, [r5, #16]
	ldr	r2, [r5]
	add	r9, r1, r3, lsl #3
	add	r2, r2, r4
	str	r5, [r9, #20]
	add	r0, r9, #16
	str	r2, [r1, r3, lsl #3]
	bl	spin_lock_init
	ldr	r3, [r8]
	add	r0, r9, #8
	str	r3, [r9, #12]
	bl	init_completion
	mov	r1, #1
	add	r0, r9, #4
	bl	atomic_set
	add	r7, r7, #1
.L4:
	add	r4, r4, #1
	ldm	r5, {r1, r3}
	sub	r3, r3, r1
	cmp	r3, r4
	bge	.L5
	cmp	r7, #0
	beq	.L3
	str	r6, [r5, #12]
	mov	r2, r5
	mov	r0, r6
	ldr	r1, .L17+8
	bl	ib_set_client_data
	ldr	r3, .L17+12
	add	r5, r5, #8
	mov	r1, r6
	mov	r0, r5
	ldr	r2, [r3]
	bl	INIT_IB_EVENT_HANDLER
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ib_register_event_handler
.L3:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	kfree
.L18:
	.align	2
.L17:
	.word	GFP_KERNEL
	.word	RB_ROOT
	.word	mcast_client
	.word	mcast_event_handler
	.size	mcast_add_one, .-mcast_add_one
	.comm	mcast_event_handler,4,4
	.comm	mcast_client,4,4
	.comm	RB_ROOT,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
