	.file	"extr_osm_sa_mcmember_record.c_build_new_mgid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	build_new_mgid, @function
build_new_mgid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, 8[rdx]
	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, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	DWORD PTR IB_MCR_COMPMASK_SCOPE[rip], esi
	jne	.L11
	mov	eax, DWORD PTR IB_MC_SCOPE_LINK_LOCAL[rip]
	mov	DWORD PTR 4[rsp], eax
.L3:
	mov	rdi, QWORD PTR 8[r14]
	mov	rsi, QWORD PTR [rbx]
	mov	edx, 4
	mov	r12d, 1000
	lea	rbp, uniq_count.1956[rip]
	mov	DWORD PTR [rdi], 255
	mov	eax, DWORD PTR 4[rsp]
	add	rdi, 16
	or	eax, 16
	mov	DWORD PTR -12[rdi], eax
	movabs	rax, 115964117152
	mov	QWORD PTR -8[rdi], rax
	call	memcpy@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	sub	r12d, 1
	je	.L1
.L5:
	mov	rax, QWORD PTR 8[r14]
	mov	rsi, rbp
	mov	edx, 4
	lea	rdi, 40[rax]
	call	memcpy@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, r13
	add	DWORD PTR uniq_count.1956[rip], 1
	call	osm_get_mgrp_by_mgid@PLT
	test	eax, eax
	jne	.L12
	mov	r12d, 1
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR [r14]
	lea	rsi, 4[rsp]
	xor	edx, edx
	call	ib_member_get_scope_state@PLT
	jmp	.L3
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	build_new_mgid, .-build_new_mgid
	.local	uniq_count.1956
	.comm	uniq_count.1956,4,4
	.comm	IB_MC_SCOPE_LINK_LOCAL,4,4
	.comm	IB_MCR_COMPMASK_SCOPE,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_build_new_mgid.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_new_mgid, %function
build_new_mgid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r9, r2
	ldr	r3, .L14
	ldr	r2, .L14+4
	ldr	r3, [r3]
	sub	sp, sp, #12
	tst	r1, r3
	mov	r6, r0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	add	r8, r9, #4
	bne	.L11
	ldr	r3, .L14+8
	ldr	r3, [r3]
	str	r3, [sp]
.L3:
	mov	r3, #255
	mov	r1, #160
	mov	r2, #27
	ldr	r0, [r9, #4]
	ldr	r5, .L14+12
	str	r3, [r0]
	ldr	r3, [sp]
	str	r1, [r0, #8]
	orr	r3, r3, #16
	str	r2, [r0, #12]
	str	r3, [r0, #4]
	mov	r2, #4
	ldr	r1, [r6]
	add	r0, r0, #16
	bl	memcpy
	mov	r7, r5
	mov	r4, #1000
	b	.L5
.L12:
	subs	r4, r4, #1
	beq	.L1
.L5:
	ldr	r0, [r9, #4]
	mov	r2, #4
	mov	r1, r7
	add	r0, r0, #40
	bl	memcpy
	ldr	r3, [r5]
	ldr	r0, [r6]
	add	r3, r3, #1
	mov	r1, r8
	str	r3, [r5]
	bl	osm_get_mgrp_by_mgid
	cmp	r0, #0
	bne	.L12
	mov	r4, #1
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	mov	r2, #0
	mov	r1, sp
	ldr	r0, [r9]
	bl	ib_member_get_scope_state
	b	.L3
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	IB_MCR_COMPMASK_SCOPE
	.word	.LC0
	.word	IB_MC_SCOPE_LINK_LOCAL
	.word	.LANCHOR0
	.size	build_new_mgid, .-build_new_mgid
	.comm	IB_MC_SCOPE_LINK_LOCAL,4,4
	.comm	IB_MCR_COMPMASK_SCOPE,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	uniq_count.4240, %object
	.size	uniq_count.4240, 4
uniq_count.4240:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
