	.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	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_rdma_start_port
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_rdma_end_port
	cmpl	%eax, %r15d
	jle	LBB0_1
LBB0_14:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movslq	%r15d, %r15
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r15), %rbx
	movq	%r14, %rdi
	callq	_rdma_end_port
	cltq
	cmpq	%rax, %r15
	movq	%rbx, %r15
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_rdma_cap_roce_gid_table
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_ib_find_cached_gid_by_port
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_IB_GID_TYPE_IB@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	leaq	-80(%rbp), %rbx
	jne	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	cmpl	$0, (%rax,%r15,4)
	jle	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_ib_query_gid
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=2
	incl	%r13d
	movq	(%r14), %rax
	cmpl	(%rax,%r15,4), %r13d
	jl	LBB0_8
	jmp	LBB0_13
LBB0_10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	xorl	%eax, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.11:
	movl	%r13d, (%rcx)
	jmp	LBB0_15
LBB0_4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_GID_TYPE_IB,4,2             ## @IB_GID_TYPE_IB
	.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, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	bl	_rdma_start_port
	mov	x25, x0
	mov	x0, x24
	bl	_rdma_end_port
	cmp	w25, 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
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	sxtw	x25, w25
Lloh3:
	adrp	x27, _IB_GID_TYPE_IB@GOTPAGE
Lloh4:
	ldr	x27, [x27, _IB_GID_TYPE_IB@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x25, #1
	mov	x0, x24
	bl	_rdma_end_port
	cmp	x25, w0, sxtw
	mov	x25, x26
	b.ge	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mov	x0, x24
	mov	x1, x25
	bl	_rdma_cap_roce_gid_table
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x25
	mov	x4, x21
	mov	x5, x19
	bl	_ib_find_cached_gid_by_port
	cbz	w0, LBB0_15
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	ldr	w8, [x8, x25, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #0
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x3, sp, #8
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	mov	x4, #0
	bl	_ib_query_gid
	cbnz	w0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x0, sp, #8
	mov	x1, x23
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	add	w26, w26, #1
	ldr	x8, [x24]
	ldr	w8, [x8, x25, lsl #2]
	cmp	w26, w8
	b.lt	LBB0_10
	b	LBB0_4
LBB0_13:
	str	w25, [x20]
	mov	w0, #0
	cbz	x19, LBB0_2
; %bb.14:
	str	w26, [x19]
	b	LBB0_2
LBB0_15:
	str	w25, [x20]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_GID_TYPE_IB,4,2             ; @IB_GID_TYPE_IB
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
