	.file	"extr_cma.c_cma_sidr_rep_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"RDMA CM: UNREACHABLE: bad SIDR reply. status %d\n"
	.align 8
.LC1:
	.string	"RDMA CM: ADDR_ERROR: failed to set qkey. status %d\n"
	.align 8
.LC2:
	.string	"RDMA CMA: unexpected IB CM event: %d\n"
	.text
	.p2align 4
	.type	cma_sidr_rep_handler, @function
cma_sidr_rep_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm0, xmm0
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR [rsp], xmm0
	lea	r13, 8[rbp]
	movaps	XMMWORD PTR 16[rsp], xmm0
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rax, QWORD PTR RDMA_CM_CONNECT[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L9
	mov	esi, DWORD PTR [r12]
	cmp	esi, 128
	je	.L3
	cmp	esi, 129
	jne	.L18
	mov	eax, DWORD PTR 20[r12]
	mov	esi, DWORD PTR 4[r12]
	cmp	esi, DWORD PTR IB_SIDR_SUCCESS[rip]
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR IB_CM_SIDR_REP_PRIVATE_DATA_SIZE[rip]
	mov	DWORD PTR 16[rsp], eax
	je	.L7
	mov	rax, QWORD PTR RDMA_CM_EVENT_UNREACHABLE[rip]
	lea	rdi, .LC0[rip]
	mov	DWORD PTR [rsp], esi
	lea	r15, 4[rsp]
	mov	QWORD PTR 24[rsp], rax
	call	pr_debug_ratelimited@PLT
.L6:
	lea	r14, 16[rbp]
	mov	rsi, rsp
	mov	rdi, r14
	call	[QWORD PTR 16[rbp]]
	mov	rdi, r15
	mov	r12d, eax
	call	rdma_destroy_ah_attr@PLT
	test	r12d, r12d
	je	.L9
	mov	QWORD PTR 40[rbp], 0
	mov	esi, DWORD PTR RDMA_CM_DESTROYING[rip]
	mov	rdi, rbp
	call	cma_exch@PLT
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	rdi, r14
	call	rdma_destroy_id@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rdi, .LC2[rip]
	call	pr_err@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r13
	xor	r12d, r12d
	call	mutex_unlock@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR RDMA_CM_EVENT_UNREACHABLE[rip]
	lea	r15, 4[rsp]
	mov	QWORD PTR 24[rsp], rax
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	neg	eax
	mov	DWORD PTR [rsp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR 8[r12]
	mov	rdi, rbp
	call	cma_set_qkey@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L8
	mov	esi, eax
	lea	rdi, .LC1[rip]
	lea	r15, 4[rsp]
	call	pr_debug_ratelimited@PLT
	mov	rax, QWORD PTR RDMA_CM_EVENT_ADDR_ERROR[rip]
	mov	DWORD PTR [rsp], r14d
	mov	QWORD PTR 24[rsp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR 24[rbp]
	mov	esi, DWORD PTR 28[rbp]
	lea	r15, 4[rsp]
	mov	edi, DWORD PTR 32[rbp]
	mov	r8d, DWORD PTR 16[r12]
	mov	rcx, r15
	call	ib_init_ah_attr_from_path@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	DWORD PTR [rsp], 0
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR RDMA_CM_EVENT_ESTABLISHED[rip]
	mov	QWORD PTR 24[rsp], rax
	jmp	.L6
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cma_sidr_rep_handler, .-cma_sidr_rep_handler
	.comm	RDMA_CM_EVENT_UNREACHABLE,8,8
	.comm	RDMA_CM_EVENT_ESTABLISHED,8,8
	.comm	RDMA_CM_EVENT_ADDR_ERROR,8,8
	.comm	RDMA_CM_DESTROYING,4,4
	.comm	RDMA_CM_CONNECT,8,8
	.comm	IB_SIDR_SUCCESS,4,4
	.comm	IB_CM_SIDR_REP_PRIVATE_DATA_SIZE,4,4
	.comm	ETIMEDOUT,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_cma.c_cma_sidr_rep_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"RDMA CM: UNREACHABLE: bad SIDR reply. status %d\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"RDMA CM: ADDR_ERROR: failed to set qkey. status %d\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"RDMA CMA: unexpected IB CM event: %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cma_sidr_rep_handler, %function
cma_sidr_rep_handler:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0]
	ldr	r2, .L20
	add	r6, r4, #4
	sub	sp, sp, #40
	mov	r0, r6
	ldr	r2, [r2]
	str	r2, [sp, #36]
	mov	r2,#0
	mov	r5, r1
	str	r3, [sp, #8]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	str	r3, [sp, #32]
	bl	mutex_lock
	ldr	r3, .L20+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L9
	ldr	r1, [r5]
	cmp	r1, #128
	beq	.L3
	cmp	r1, #129
	bne	.L18
	ldr	r3, .L20+8
	ldr	r2, .L20+12
	ldr	r3, [r3]
	ldr	r1, [r5, #4]
	ldr	r2, [r2]
	cmp	r1, r3
	ldr	r3, [r5, #20]
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	beq	.L7
	ldr	r3, .L20+16
	ldr	r0, .L20+20
	ldr	r3, [r3]
	str	r1, [sp, #8]
	str	r3, [sp, #32]
	bl	pr_debug_ratelimited
	add	r8, sp, #12
.L6:
	add	r7, r4, #8
	ldr	r3, [r4, #8]
	add	r1, sp, #8
	mov	r0, r7
	blx	r3
	mov	r5, r0
	mov	r0, r8
	bl	rdma_destroy_ah_attr
	cmp	r5, #0
	beq	.L9
	mov	r2, #0
	ldr	r3, .L20+24
	str	r2, [r4, #24]
	ldr	r1, [r3]
	mov	r0, r4
	bl	cma_exch
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, r7
	bl	rdma_destroy_id
	b	.L1
.L18:
	ldr	r0, .L20+28
	bl	pr_err
.L9:
	mov	r0, r6
	bl	mutex_unlock
	mov	r5, #0
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r5
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, .L20+32
	ldr	r2, .L20+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	rsb	r3, r3, #0
	str	r3, [sp, #8]
	str	r2, [sp, #32]
	add	r8, sp, #12
	b	.L6
.L7:
	mov	r0, r4
	ldr	r1, [r5, #8]
	bl	cma_set_qkey
	subs	r7, r0, #0
	beq	.L8
	mov	r1, r7
	ldr	r0, .L20+36
	bl	pr_debug_ratelimited
	ldr	r3, .L20+40
	str	r7, [sp, #8]
	ldr	r3, [r3]
	add	r8, sp, #12
	str	r3, [sp, #32]
	b	.L6
.L8:
	ldr	r3, [r5, #16]
	add	r8, sp, #12
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #20]
	str	r3, [sp]
	mov	r3, r8
	bl	ib_init_ah_attr_from_path
	ldr	r3, .L20+44
	ldr	r2, [r5, #12]
	ldr	r1, [r3]
	ldr	r3, [r5, #8]
	str	r7, [sp, #8]
	str	r1, [sp, #32]
	str	r2, [sp, #20]
	str	r3, [sp, #16]
	b	.L6
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC3
	.word	RDMA_CM_CONNECT
	.word	IB_SIDR_SUCCESS
	.word	IB_CM_SIDR_REP_PRIVATE_DATA_SIZE
	.word	RDMA_CM_EVENT_UNREACHABLE
	.word	.LC0
	.word	RDMA_CM_DESTROYING
	.word	.LC2
	.word	ETIMEDOUT
	.word	.LC1
	.word	RDMA_CM_EVENT_ADDR_ERROR
	.word	RDMA_CM_EVENT_ESTABLISHED
	.size	cma_sidr_rep_handler, .-cma_sidr_rep_handler
	.comm	RDMA_CM_EVENT_UNREACHABLE,4,4
	.comm	RDMA_CM_EVENT_ESTABLISHED,4,4
	.comm	RDMA_CM_EVENT_ADDR_ERROR,4,4
	.comm	RDMA_CM_DESTROYING,4,4
	.comm	RDMA_CM_CONNECT,4,4
	.comm	IB_SIDR_SUCCESS,4,4
	.comm	IB_CM_SIDR_REP_PRIVATE_DATA_SIZE,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
