	.file	"extr_ucma.c_ucma_event_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ucma_event_handler, @function
ucma_event_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	r14, QWORD PTR 16[rdi]
	mov	edi, 40
	call	kzalloc@PLT
	test	rax, rax
	je	.L15
	mov	rdi, QWORD PTR [r14]
	mov	rbp, rax
	call	mutex_lock@PLT
	mov	QWORD PTR 32[rbp], r13
	mov	rdx, rbp
	mov	rsi, rbx
	mov	rdi, r14
	call	ucma_set_event_context@PLT
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR 16[rbx]
	mov	DWORD PTR 24[rbp], eax
	mov	rax, QWORD PTR IB_QPT_UD[rip]
	cmp	QWORD PTR 0[r13], rax
	je	.L16
	lea	rsi, 8[rbx]
	lea	rdi, 16[rbp]
	call	ucma_copy_conn_event@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR RDMA_CM_EVENT_CONNECT_REQUEST[rip]
	je	.L17
.L6:
	mov	edx, DWORD PTR 16[r14]
	test	edx, edx
	je	.L10
	cmp	QWORD PTR 8[r14], r13
	je	.L9
.L10:
	cmp	rax, QWORD PTR RDMA_CM_EVENT_DEVICE_REMOVAL[rip]
	je	.L18
.L11:
	mov	rdi, rbp
	xor	r12d, r12d
	call	kfree@PLT
.L8:
	mov	rdi, QWORD PTR [r14]
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[r13]
	lea	rdx, 12[rbx]
	lea	rsi, 20[rbp]
	call	ucma_copy_ud_event@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR RDMA_CM_EVENT_CONNECT_REQUEST[rip]
	jne	.L6
.L17:
	mov	eax, DWORD PTR 20[r14]
	test	eax, eax
	je	.L19
	sub	eax, 1
	mov	DWORD PTR 20[r14], eax
.L9:
	mov	rax, QWORD PTR [r14]
	mov	rdi, rbp
	xor	r12d, r12d
	lea	rsi, 8[rax]
	call	list_add_tail@PLT
	mov	rax, QWORD PTR [r14]
	lea	rdi, 4[rax]
	call	wake_up_interruptible@PLT
	mov	rax, QWORD PTR RDMA_CM_EVENT_DEVICE_REMOVAL[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L8
	mov	rdi, r13
	call	ucma_removal_event_handler@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR RDMA_CM_EVENT_CONNECT_REQUEST[rip]
	xor	r12d, r12d
	cmp	QWORD PTR [rbx], rax
	sete	r12b
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rdi, r13
	call	ucma_removal_event_handler@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rdi, rbp
	neg	r12d
	call	kfree@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	ucma_event_handler, .-ucma_event_handler
	.comm	RDMA_CM_EVENT_DEVICE_REMOVAL,8,8
	.comm	RDMA_CM_EVENT_CONNECT_REQUEST,8,8
	.comm	IB_QPT_UD,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_ucma.c_ucma_event_handler.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ucma_event_handler, %function
ucma_event_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r3, .L23
	mov	r5, r1
	mov	r0, #24
	ldr	r1, [r3]
	ldr	r7, [r6, #8]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L18
	ldr	r0, [r7]
	bl	mutex_lock
	mov	r2, r4
	mov	r1, r5
	mov	r0, r7
	str	r6, [r4, #20]
	bl	ucma_set_event_context
	ldr	r3, .L23+4
	ldr	r0, [r6]
	ldr	r1, [r3]
	ldr	r2, [r5]
	ldr	r3, [r5, #12]
	cmp	r0, r1
	str	r2, [r4, #4]
	str	r3, [r4, #16]
	beq	.L19
	add	r1, r5, #4
	add	r0, r4, #8
	bl	ucma_copy_conn_event
.L5:
	ldr	r2, .L23+8
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L20
	ldr	r2, [r7, #8]
	cmp	r2, #0
	beq	.L10
	ldr	r2, [r7, #4]
	cmp	r2, r6
	beq	.L9
.L10:
	ldr	r2, .L23+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L21
.L11:
	mov	r0, r4
	bl	kfree
	mov	r4, #0
.L8:
	ldr	r0, [r7]
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	ldr	r0, [r6, #4]
	add	r2, r5, #8
	add	r1, r4, #12
	bl	ucma_copy_ud_event
	b	.L5
.L20:
	ldr	r3, [r7, #12]
	cmp	r3, #0
	subne	r3, r3, #1
	strne	r3, [r7, #12]
	beq	.L22
.L9:
	ldr	r1, [r7]
	mov	r0, r4
	add	r1, r1, #8
	bl	list_add_tail
	ldr	r0, [r7]
	add	r0, r0, #4
	bl	wake_up_interruptible
	ldr	r3, .L23+12
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	movne	r4, #0
	bne	.L8
	mov	r0, r6
	bl	ucma_removal_event_handler
	mov	r4, #0
	b	.L8
.L18:
	ldr	r3, .L23+8
	ldr	r4, [r5]
	ldr	r3, [r3]
	sub	r4, r4, r3
	clz	r4, r4
	lsr	r4, r4, #5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	mov	r0, r6
	bl	ucma_removal_event_handler
	b	.L11
.L22:
	ldr	r3, .L23+16
	mov	r0, r4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	bl	kfree
	b	.L8
.L24:
	.align	2
.L23:
	.word	GFP_KERNEL
	.word	IB_QPT_UD
	.word	RDMA_CM_EVENT_CONNECT_REQUEST
	.word	RDMA_CM_EVENT_DEVICE_REMOVAL
	.word	ENOMEM
	.size	ucma_event_handler, .-ucma_event_handler
	.comm	RDMA_CM_EVENT_DEVICE_REMOVAL,4,4
	.comm	RDMA_CM_EVENT_CONNECT_REQUEST,4,4
	.comm	IB_QPT_UD,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
