	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_find_cached_gid             ## -- Begin function ib_find_cached_gid
	.p2align	4, 0x90
_ib_find_cached_gid:                    ## @ib_find_cached_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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movl	$-1, (%rdx)
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movl	$-1, (%rcx)
LBB0_2:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_read_lock_irqsave
	movq	%r13, %rdi
	callq	_end_port
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_start_port
	cmpl	%eax, %r12d
	jl	LBB0_12
## %bb.3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%r15), %rbx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_end_port
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_start_port
	subl	%eax, %r12d
	movslq	%r12d, %rax
	cmpq	%rax, %r15
	movq	%rbx, %r15
	jge	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	8(%r13), %rax
	movq	(%rax,%r15,8), %r12
	cmpl	$0, (%r12)
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$4, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r12), %rsi
	addq	%r13, %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	movslq	(%r12), %rax
	addq	$8, %r13
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_10
LBB0_7:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_start_port
	addl	%r15d, %eax
	xorl	%r15d, %r15d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.8:
	movq	8(%r12), %rax
	movl	(%rax,%rbx,8), %eax
	movl	%eax, (%rcx)
LBB0_12:
	movq	%r13, %rdi
	callq	_read_unlock_irqrestore
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_12
	.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_cached_gid             ; -- Begin function ib_find_cached_gid
	.p2align	2
_ib_find_cached_gid:                    ; @ib_find_cached_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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	mov	w8, #-1
	str	w8, [x2]
	cbz	x3, LBB0_2
; %bb.1:
	str	w8, [x21]
LBB0_2:
	mov	x0, x19
	bl	_read_lock_irqsave
	mov	x0, x19
	bl	_end_port
	mov	x24, x0
	mov	x0, x19
	bl	_start_port
	cmp	w24, w0
	b.lt	LBB0_11
; %bb.3:
	mov	x25, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x25, #1
	mov	x0, x19
	bl	_end_port
	mov	x24, x0
	mov	x0, x19
	bl	_start_port
	sub	w8, w24, w0
	cmp	x25, w8, sxtw
	mov	x25, x26
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x19, #8]
	ldr	x24, [x8, x25, lsl #3]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, #0
	mov	x27, #0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24, #8]
	add	x8, x8, x26
	add	x1, x8, #4
	mov	x0, x23
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x27, x27, #1
	ldrsw	x8, [x24]
	add	x26, x26, #8
	cmp	x27, x8
	b.lt	LBB0_7
	b	LBB0_4
LBB0_9:
	mov	x0, x19
	bl	_start_port
	add	w8, w0, w25
	str	w8, [x22]
	mov	w20, #0
	cbz	x21, LBB0_11
; %bb.10:
	ldr	x8, [x24, #8]
	ldr	w8, [x8, x26]
	str	w8, [x21]
LBB0_11:
	mov	x0, x19
	bl	_read_unlock_irqrestore
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
