	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_new_mgid
_build_new_mgid:                        ## @build_new_mgid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	8(%rdx), %r12
	movq	_IB_MCR_COMPMASK_SCOPE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%rdx), %edi
	leaq	-36(%rbp), %rsi
	xorl	%edx, %edx
	callq	_ib_member_get_scope_state
	jmp	LBB0_3
LBB0_2:
	movq	_IB_MC_SCOPE_LINK_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
LBB0_3:
	movq	(%r12), %rdi
	movl	$255, (%rdi)
	movl	-36(%rbp), %eax
	orl	$16, %eax
	movl	%eax, 4(%rdi)
	movabsq	$115964117152, %rax             ## imm = 0x1B000000A0
	movq	%rax, 8(%rdi)
	addq	$16, %rdi
	movq	(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	$1000, %ebx                     ## imm = 0x3E8
	leaq	_build_new_mgid.uniq_count(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	$40, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	incl	_build_new_mgid.uniq_count(%rip)
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	_osm_get_mgrp_by_mgid
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%ebx
	jne	LBB0_4
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movl	$1, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_build_new_mgid.uniq_count,4,2 ## @build_new_mgid.uniq_count
	.comm	_IB_MCR_COMPMASK_SCOPE,4,2      ## @IB_MCR_COMPMASK_SCOPE
	.comm	_IB_MC_SCOPE_LINK_LOCAL,4,2     ## @IB_MC_SCOPE_LINK_LOCAL
	.no_dead_strip	_build_new_mgid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function build_new_mgid
lCPI0_0:
	.long	160                             ; 0xa0
	.long	27                              ; 0x1b
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_build_new_mgid:                        ; @build_new_mgid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	add	x20, x2, #8
Lloh0:
	adrp	x8, _IB_MCR_COMPMASK_SCOPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MCR_COMPMASK_SCOPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x2]
	add	x1, sp, #12
	mov	x2, #0
	bl	_ib_member_get_scope_state
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _IB_MC_SCOPE_LINK_LOCAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MC_SCOPE_LINK_LOCAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #12]
LBB0_3:
	ldr	x8, [x20]
	mov	w9, #255
	str	w9, [x8]
	ldr	w9, [sp, #12]
	orr	w9, w9, #0x10
	str	w9, [x8, #4]
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8, #8]
	add	x0, x8, #16
	ldr	x1, [x19]
	mov	w2, #4
	bl	_memcpy
	mov	w22, #1000
Lloh8:
	adrp	x21, _build_new_mgid.uniq_count@PAGE
Lloh9:
	add	x21, x21, _build_new_mgid.uniq_count@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, #40
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	x0, [x19]
	mov	x1, x20
	bl	_osm_get_mgrp_by_mgid
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	w22, w22, #1
	b.ne	LBB0_4
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_build_new_mgid.uniq_count,4,2 ; @build_new_mgid.uniq_count
	.comm	_IB_MCR_COMPMASK_SCOPE,4,2      ; @IB_MCR_COMPMASK_SCOPE
	.comm	_IB_MC_SCOPE_LINK_LOCAL,4,2     ; @IB_MC_SCOPE_LINK_LOCAL
	.no_dead_strip	_build_new_mgid
.subsections_via_symbols
