	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_find_gid                    ## -- Begin function ib_find_gid
	.p2align	4, 0x90
_ib_find_gid:                           ## @ib_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	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_start_port
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_end_port
	cmpl	%eax, %r13d
	jle	LBB0_1
LBB0_10:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_1:
	leaq	-72(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r13), %r15d
	movq	%rbx, %rdi
	callq	_end_port
	cmpl	%eax, %r13d
	movl	%r15d, %r13d
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	(%rbx), %r15
	movq	%rbx, %rdi
	callq	_start_port
	movl	%r13d, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	cmpl	$0, (%r15,%rax,4)
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_ib_query_gid
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	incl	%r15d
	movq	(%rbx), %r12
	movq	%rbx, %rdi
	callq	_start_port
	movl	%r13d, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	cmpl	(%r12,%rax,4), %r15d
	jl	LBB0_4
	jmp	LBB0_9
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	xorl	%eax, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.7:
	movl	%r15d, (%rcx)
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_find_gid                    ; -- Begin function ib_find_gid
	.p2align	2
_ib_find_gid:                           ; @ib_find_gid
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_start_port
	mov	x23, x0
	mov	x0, x22
	bl	_end_port
	cmp	w23, w0
	b.le	LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w23, #1
	mov	x0, x22
	bl	_end_port
	cmp	w23, w0
	mov	x23, x24
	b.ge	LBB0_1
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x24, [x22]
	mov	x0, x22
	bl	_start_port
	sub	w8, w23, w0
	ldr	w8, [x24, w8, sxtw #2]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w24, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_ib_query_gid
	cbnz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x0, sp, #8
	mov	x1, x21
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w24, w24, #1
	ldr	x25, [x22]
	mov	x0, x22
	bl	_start_port
	sub	w8, w23, w0
	ldr	w8, [x25, w8, sxtw #2]
	cmp	w24, w8
	b.lt	LBB0_5
	b	LBB0_2
LBB0_8:
	str	w23, [x20]
	mov	w0, #0
	cbz	x19, LBB0_10
; %bb.9:
	str	w24, [x19]
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
