	.file	"extr_osm_sa_mcmember_record.c_get_new_mlid.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Special Case Solicited Node Mcast Join for MGID %s\n"
	.text
	.p2align 4
	.type	get_new_mlid, @function
get_new_mlid:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	mov	r13, QWORD PTR [rdi]
	mov	r12, QWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, r13
	test	r12, r12
	jne	.L32
	cmp	QWORD PTR 16[rax], 0
	jne	.L33
.L6:
	mov	rsi, QWORD PTR IB_LID_MCAST_START_HO[rip]
	mov	eax, 1
	sub	eax, esi
	add	eax, DWORD PTR 0[r13]
	je	.L14
	mov	rdx, QWORD PTR [rbx]
	lea	ecx, -1[rax]
	xor	edi, edi
	mov	rdx, QWORD PTR 8[rdx]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rax, 1[rdi]
	cmp	rcx, rdi
	je	.L14
	mov	rdi, rax
.L11:
	mov	eax, DWORD PTR [rdx+rdi*4]
	test	eax, eax
	jne	.L10
	add	rdi, rsi
	call	cl_hton16@PLT
	mov	r12, rax
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L34
	lea	rsp, -32[rbp]
	mov	rax, r12
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, r12
	call	cl_ntoh16@PLT
	cmp	rax, QWORD PTR IB_LID_MCAST_START_HO[rip]
	jge	.L3
.L30:
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR 16[rax], 0
	je	.L6
.L33:
	mov	rdi, r14
	call	match_ipv6_snm_mgid@PLT
	test	rax, rax
	je	.L6
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, r14
	call	find_ipv6_snm_mlid@PLT
	mov	r12, rax
	test	rax, rax
	je	.L6
	movsx	rax, DWORD PTR INET6_ADDRSTRLEN[rip]
	mov	rsi, rsp
	mov	r13, rsp
	mov	rcx, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L8
.L35:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L35
.L8:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	test	rax, rax
	je	.L9
	or	QWORD PTR -8[rsp+rax], 0
.L9:
	mov	esi, DWORD PTR [r14]
	mov	edi, DWORD PTR AF_INET6[rip]
	mov	rdx, rsp
	call	inet_ntop@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR OSM_LOG_DEBUG[rip]
	lea	rdx, .LC0[rip]
	mov	ecx, eax
	call	OSM_LOG@PLT
	mov	rsp, r13
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r12
	call	cl_ntoh16@PLT
	cmp	rax, QWORD PTR 0[r13]
	jg	.L30
	mov	rsi, r12
	mov	rdi, r13
	call	osm_get_mbox_by_mlid@PLT
	test	eax, eax
	jne	.L30
	jmp	.L1
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_new_mlid, .-get_new_mlid
	.comm	OSM_LOG_DEBUG,4,4
	.comm	INET6_ADDRSTRLEN,4,4
	.comm	IB_LID_MCAST_START_HO,8,8
	.comm	AF_INET6,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_osm_sa_mcmember_record.c_get_new_mlid.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Special Case Solicited Node Mcast Join for MGID %s\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_new_mlid, %function
get_new_mlid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #12
	ldr	r4, [r1, #4]
	ldr	r3, .L32
	ldr	r7, [r0]
	cmp	r4, #0
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r6, r1
	mov	r5, r0
	moveq	r3, r7
	bne	.L29
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L30
.L6:
	ldr	r3, .L32+4
	ldr	r1, [r7]
	ldr	ip, [r3]
	sub	r1, r1, ip
	cmn	r1, #1
	beq	.L11
	ldr	r3, [r5]
	mov	r0, #0
	ldr	r3, [r3, #4]
	sub	r3, r3, #4
	b	.L8
.L7:
	cmp	r0, r1
	add	r0, r0, #1
	beq	.L11
.L8:
	ldr	r2, [r3, #4]!
	cmp	r2, #0
	bne	.L7
	add	r0, ip, r0
	bl	cl_hton16
	mov	r4, r0
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	mov	r0, r4
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L11:
	mov	r4, #0
	b	.L1
.L29:
	mov	r0, r4
	bl	cl_ntoh16
	ldr	r3, .L32+4
	ldr	r3, [r3]
	cmp	r0, r3
	bge	.L3
.L27:
	ldr	r3, [r5]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L6
.L30:
	mov	r0, r6
	bl	match_ipv6_snm_mgid
	cmp	r0, #0
	beq	.L6
	mov	r1, r6
	ldr	r0, [r5]
	bl	find_ipv6_snm_mlid
	subs	r4, r0, #0
	beq	.L6
	ldr	r3, .L32+8
	ldr	r1, .L32+12
	ldr	r3, [r3]
	ldr	r0, .L32+16
	add	r2, r3, #7
	bic	r2, r2, #7
	mov	r7, sp
	sub	sp, sp, r2
	mov	r2, sp
	ldr	r8, [r1]
	ldr	r0, [r0]
	ldr	r1, [r6]
	ldr	r5, [r5, #4]
	bl	inet_ntop
	mov	r1, r8
	mov	r3, r0
	ldr	r2, .L32+20
	mov	r0, r5
	bl	OSM_LOG
	mov	sp, r7
	b	.L1
.L3:
	mov	r0, r4
	bl	cl_ntoh16
	ldr	r3, [r7]
	cmp	r0, r3
	bgt	.L27
	mov	r1, r4
	mov	r0, r7
	bl	osm_get_mbox_by_mlid
	cmp	r0, #0
	bne	.L27
	b	.L1
.L31:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC1
	.word	IB_LID_MCAST_START_HO
	.word	INET6_ADDRSTRLEN
	.word	OSM_LOG_DEBUG
	.word	AF_INET6
	.word	.LC0
	.size	get_new_mlid, .-get_new_mlid
	.comm	OSM_LOG_DEBUG,4,4
	.comm	INET6_ADDRSTRLEN,4,4
	.comm	IB_LID_MCAST_START_HO,4,4
	.comm	AF_INET6,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
