	.file	"extr_mcg.c_handle_join_req.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	handle_join_req, @function
handle_join_req:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, 16[rdx]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	r13d, DWORD PTR 16[rdi]
	mov	rbp, rdi
	and	r13d, esi
	and	r13d, 15
	cmp	r13d, esi
	je	.L8
	mov	eax, DWORD PTR [rdi]
	mov	rsi, r14
	mov	DWORD PTR 4[rdi], eax
	call	send_join_to_wire@PLT
	test	rax, rax
	jne	.L9
	mov	eax, DWORD PTR MCAST_JOIN_SENT[rip]
	mov	DWORD PTR 0[rbp], eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L9:
	.cfi_restore_state
	mov	rdx, QWORD PTR [r12]
	mov	rax, QWORD PTR 8[rbp]
	lea	rdi, 12[r12]
	sub	DWORD PTR [rax+rdx*4], 1
	call	list_del@PLT
	lea	rdi, 8[r12]
	call	list_del@PLT
	mov	rdi, r12
	call	kfree@PLT
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 0[rbp], eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	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
.L8:
	.cfi_restore_state
	mov	edx, DWORD PTR 16[rdx]
	mov	rsi, QWORD PTR 24[r12]
	lea	rdi, 16[rdi]
	call	cmp_rec@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L10
.L3:
	mov	rdi, QWORD PTR [r12]
	mov	rax, QWORD PTR 8[rbp]
	mov	ecx, r15d
	mov	rdx, r14
	mov	rsi, rbp
	sub	DWORD PTR [rax+rdi*4], 1
	call	send_reply_to_slave@PLT
	lea	rdi, 12[r12]
	call	list_del@PLT
	lea	rdi, 8[r12]
	call	list_del@PLT
	mov	rdi, r12
	call	kfree@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	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
.L10:
	.cfi_restore_state
	mov	rsi, QWORD PTR [r12]
	mov	edx, r13d
	mov	rdi, rbp
	call	join_group@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	handle_join_req, .-handle_join_req
	.comm	MCAST_JOIN_SENT,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_mcg.c_handle_join_req.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_join_req, %function
handle_join_req:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #12]
	mov	r4, r0
	and	r6, r6, r1
	and	r6, r6, #15
	cmp	r6, r1
	mov	r5, r2
	add	r7, r2, #12
	beq	.L8
	ldr	r3, [r0]
	mov	r1, r7
	str	r3, [r0, #4]
	bl	send_join_to_wire
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r0, r5
	ldr	r2, [r4, #8]
	ldr	r1, [r0], #8
	ldr	r3, [r2, r1, lsl #2]
	sub	r3, r3, #1
	str	r3, [r2, r1, lsl #2]
	bl	list_del
	add	r0, r5, #4
	bl	list_del
	mov	r0, r5
	bl	kfree
	ldr	r3, [r4, #4]
	mov	r0, #1
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r2, [r2, #12]
	ldr	r1, [r5, #16]
	add	r0, r0, #12
	bl	cmp_rec
	subs	r8, r0, #0
	beq	.L10
.L3:
	mov	r6, r5
	ldr	lr, [r4, #8]
	ldr	r0, [r6], #8
	mov	r3, r8
	ldr	ip, [lr, r0, lsl #2]
	mov	r2, r7
	sub	ip, ip, #1
	mov	r1, r4
	str	ip, [lr, r0, lsl #2]
	bl	send_reply_to_slave
	mov	r0, r6
	bl	list_del
	add	r0, r5, #4
	bl	list_del
	mov	r0, r5
	bl	kfree
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r5]
	bl	join_group
	b	.L3
.L12:
	.align	2
.L11:
	.word	MCAST_JOIN_SENT
	.size	handle_join_req, .-handle_join_req
	.comm	MCAST_JOIN_SENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
