	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_gid
_find_gid:                              ## @find_gid
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r9, %rax
	negq	%rax
	sbbl	%r15d, %r15d
	cmpl	$0, (%rdi)
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %eax
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_21
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r13
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	jns	LBB0_21
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %r14
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	jns	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_is_gid_entry_free
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_is_gid_index_default
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	cmovel	%r13d, %r15d
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r13), %rbx
	movq	%r14, %rdi
	callq	_is_gid_entry_valid
	testl	%eax, %eax
	je	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jns	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_GID_ATTR_FIND_MASK_GID_TYPE@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	jne	LBB0_20
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_GID_ATTR_FIND_MASK_GID@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	16(%r14), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_GID_ATTR_FIND_MASK_NETDEV@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	8(%rcx), %rax
	jne	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_GID_ATTR_FIND_MASK_DEFAULT@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_is_gid_index_default
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_19
	jmp	LBB0_20
LBB0_1:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
LBB0_21:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movl	%r15d, (%rax)
LBB0_23:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GID_ATTR_FIND_MASK_GID_TYPE,8,3 ## @GID_ATTR_FIND_MASK_GID_TYPE
	.comm	_GID_ATTR_FIND_MASK_GID,8,3     ## @GID_ATTR_FIND_MASK_GID
	.comm	_GID_ATTR_FIND_MASK_NETDEV,8,3  ## @GID_ATTR_FIND_MASK_NETDEV
	.comm	_GID_ATTR_FIND_MASK_DEFAULT,8,3 ## @GID_ATTR_FIND_MASK_DEFAULT
	.no_dead_strip	_find_gid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_gid
_find_gid:                              ; @find_gid
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	cmp	x5, #0
	csetm	w28, ne
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.1:
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	mov	x26, #0
	mov	w20, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x26
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x25]
	cmp	x26, x8
	b.ge	LBB0_21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w20, #31, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w28, #31, LBB0_21
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #8]
	ldr	x27, [x8, x26, lsl #3]
	cbz	x19, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w28, #31, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_is_gid_entry_free
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x26
	bl	_is_gid_index_default
	cmp	w0, w22
	csel	w28, w26, w28, eq
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_is_gid_entry_valid
	cbz	w0, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	tbz	w20, #31, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh0:
	adrp	x8, _GID_ATTR_FIND_MASK_GID_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GID_ATTR_FIND_MASK_GID_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh3:
	adrp	x8, _GID_ATTR_FIND_MASK_GID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GID_ATTR_FIND_MASK_GID@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x27, #16
	mov	x0, x24
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh6:
	adrp	x8, _GID_ATTR_FIND_MASK_NETDEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GID_ATTR_FIND_MASK_NETDEV@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27, #8]
	ldr	x9, [x23, #8]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x8, _GID_ATTR_FIND_MASK_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GID_ATTR_FIND_MASK_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_2
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x26
	bl	_is_gid_index_default
	cmp	w0, w22
	b.eq	LBB0_2
	b	LBB0_3
LBB0_20:
	mov	w20, #-1
LBB0_21:
	cbz	x19, LBB0_23
; %bb.22:
	str	w28, [x19]
LBB0_23:
	mov	x0, x20
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GID_ATTR_FIND_MASK_GID_TYPE,8,3 ; @GID_ATTR_FIND_MASK_GID_TYPE
	.comm	_GID_ATTR_FIND_MASK_GID,8,3     ; @GID_ATTR_FIND_MASK_GID
	.comm	_GID_ATTR_FIND_MASK_NETDEV,8,3  ; @GID_ATTR_FIND_MASK_NETDEV
	.comm	_GID_ATTR_FIND_MASK_DEFAULT,8,3 ; @GID_ATTR_FIND_MASK_DEFAULT
	.no_dead_strip	_find_gid
.subsections_via_symbols
