	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gid_table_reserve_default
_gid_table_reserve_default:             ## @gid_table_reserve_default
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	callq	_roce_gid_type_mask_support
	movq	%rax, -48(%rbp)
	movq	%rax, %rdi
	callq	_hweight_long
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %r13
	movq	_GID_TABLE_ENTRY_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%r13,%rbx,8)
	movq	_BITS_PER_LONG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_find_next_bit
	movl	%eax, (%r13,%rbx,8)
	incl	%eax
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_2
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GID_TABLE_ENTRY_DEFAULT,4,2    ## @GID_TABLE_ENTRY_DEFAULT
	.comm	_BITS_PER_LONG,4,2              ## @BITS_PER_LONG
	.no_dead_strip	_gid_table_reserve_default
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gid_table_reserve_default
_gid_table_reserve_default:             ; @gid_table_reserve_default
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	bl	_roce_gid_type_mask_support
	str	x0, [sp, #8]
	bl	_hweight_long
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, #0
	mov	w2, #0
	mov	w21, #4
Lloh0:
	adrp	x22, _GID_TABLE_ENTRY_DEFAULT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GID_TABLE_ENTRY_DEFAULT@GOTPAGEOFF]
Lloh2:
	adrp	x23, _BITS_PER_LONG@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BITS_PER_LONG@GOTPAGEOFF]
	mov	w24, w0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	x20, x8
	b.hs	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	ldr	w9, [x22]
	add	x25, x8, x21
	ldr	w8, [x25]
	orr	w8, w8, w9
	str	w8, [x25]
	ldr	w1, [x23]
	add	x0, sp, #8
	bl	_find_next_bit
	add	w2, w0, #1
	stur	w0, [x25, #-4]
	add	x20, x20, #1
	add	x21, x21, #8
	cmp	x24, x20
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GID_TABLE_ENTRY_DEFAULT,4,2    ; @GID_TABLE_ENTRY_DEFAULT
	.comm	_BITS_PER_LONG,4,2              ; @BITS_PER_LONG
	.no_dead_strip	_gid_table_reserve_default
.subsections_via_symbols
