	.file	"extr_mlx4_ib_mcg.c_handle_leave_req.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	handle_leave_req, @function
handle_leave_req:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR 24[rdx], 0
	mov	rsi, QWORD PTR [rdx]
	je	.L2
	mov	rax, QWORD PTR [rdi]
	mov	r12d, DWORD PTR 4[rax+rsi*8]
.L2:
	mov	edx, r12d
	mov	rdi, rbx
	call	check_leave@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L7
	cmp	QWORD PTR 24[rbp], 0
	mov	rdi, QWORD PTR 0[rbp]
	je	.L8
.L4:
	mov	rax, QWORD PTR [rbx]
	sub	DWORD PTR [rax+rdi*8], 1
	lea	rdi, 12[rbp]
	call	list_del@PLT
	lea	rdi, 8[rbp]
	call	list_del@PLT
	mov	rdi, rbp
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, rbx
	mov	edx, r12d
	call	leave_group@PLT
	cmp	QWORD PTR 24[rbp], 0
	mov	rdi, QWORD PTR 0[rbp]
	jne	.L4
.L8:
	lea	rdx, 16[rbp]
	mov	ecx, r13d
	mov	rsi, rbx
	call	send_reply_to_slave@PLT
	mov	rdi, QWORD PTR 0[rbp]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	handle_leave_req, .-handle_leave_req
	.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_mlx4_ib_mcg.c_handle_leave_req.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_leave_req, %function
handle_leave_req:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	ldr	r3, [r2, #16]
	ldr	r1, [r2]
	cmp	r3, #0
	ldrne	r3, [r0]
	mov	r4, r2
	addne	r3, r3, r1, lsl #3
	ldrne	r6, [r3, #4]
	mov	r5, r0
	mov	r2, r6
	bl	check_leave
	subs	r7, r0, #0
	beq	.L10
	ldr	r3, [r4, #16]
	ldr	r2, [r4]
	cmp	r3, #0
	beq	.L11
.L4:
	ldr	r1, [r5]
	add	r0, r4, #8
	ldr	r3, [r1, r2, lsl #3]
	sub	r3, r3, #1
	str	r3, [r1, r2, lsl #3]
	bl	list_del
	add	r0, r4, #4
	bl	list_del
	mov	r0, r4
	bl	kfree
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r2, r6
	mov	r0, r5
	ldr	r1, [r4]
	bl	leave_group
	ldr	r3, [r4, #16]
	ldr	r2, [r4]
	cmp	r3, #0
	bne	.L4
.L11:
	mov	r0, r2
	mov	r3, r7
	add	r2, r4, #12
	mov	r1, r5
	bl	send_reply_to_slave
	ldr	r2, [r4]
	b	.L4
	.size	handle_leave_req, .-handle_leave_req
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
