	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_find_gid_by_port          ## -- Begin function rdma_find_gid_by_port
	.p2align	4, 0x90
_rdma_find_gid_by_port:                 ## @rdma_find_gid_by_port
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_GID_ATTR_FIND_MASK_GID@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_GID_ATTR_FIND_MASK_GID_TYPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%edx, -64(%rbp)
	movq	%r8, -56(%rbp)
	movl	%ecx, %esi
	callq	_rdma_is_port_valid
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	orq	%r14, %rbx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_rdma_gid_table
	movq	%rax, %r15
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	movq	_GID_ATTR_FIND_MASK_NETDEV@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_3:
	orq	%r12, %rbx
	movq	%r15, %rdi
	callq	_read_lock_irqsave
	xorl	%r12d, %r12d
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	_find_gid
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	8(%r15), %rcx
	movl	%eax, %ebx
	movq	(%rcx,%rbx,8), %rdi
	callq	_get_gid_entry
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rbx
	movq	%r15, %rdi
	callq	_read_unlock_irqrestore
	jmp	LBB0_6
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	%r15, %rdi
	callq	_read_unlock_irqrestore
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_6:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GID_ATTR_FIND_MASK_GID,8,3     ## @GID_ATTR_FIND_MASK_GID
	.comm	_GID_ATTR_FIND_MASK_GID_TYPE,8,3 ## @GID_ATTR_FIND_MASK_GID_TYPE
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_GID_ATTR_FIND_MASK_NETDEV,8,3  ## @GID_ATTR_FIND_MASK_NETDEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_find_gid_by_port          ; -- Begin function rdma_find_gid_by_port
	.p2align	2
_rdma_find_gid_by_port:                 ; @rdma_find_gid_by_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x4
	mov	x19, x3
	mov	x20, x1
	mov	x22, x0
	str	w2, [sp]
Lloh0:
	adrp	x8, _GID_ATTR_FIND_MASK_GID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GID_ATTR_FIND_MASK_GID@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x8, _GID_ATTR_FIND_MASK_GID_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GID_ATTR_FIND_MASK_GID_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	x24, [x8]
	str	x4, [sp, #8]
	mov	x1, x3
	bl	_rdma_is_port_valid
	cbz	w0, LBB0_3
; %bb.1:
	orr	x23, x24, x23
	mov	x0, x22
	mov	x1, x19
	bl	_rdma_gid_table
	mov	x19, x0
Lloh6:
	adrp	x8, _GID_ATTR_FIND_MASK_NETDEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GID_ATTR_FIND_MASK_NETDEV@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x21, #0
	csel	x8, xzr, x8, eq
	orr	x21, x23, x8
	bl	_read_lock_irqsave
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	mov	x4, x21
	mov	x5, #0
	bl	_find_gid
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	mov	w9, w0
	lsl	x20, x9, #3
	ldr	x0, [x8, x20]
	bl	_get_gid_entry
	ldr	x8, [x19, #8]
	ldr	x20, [x8, x20]
	mov	x0, x19
	bl	_read_unlock_irqrestore
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ERR_PTR
LBB0_4:
	mov	x0, x19
	bl	_read_unlock_irqrestore
Lloh12:
	adrp	x8, _ENOENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x20, x0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GID_ATTR_FIND_MASK_GID,8,3     ; @GID_ATTR_FIND_MASK_GID
	.comm	_GID_ATTR_FIND_MASK_GID_TYPE,8,3 ; @GID_ATTR_FIND_MASK_GID_TYPE
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_GID_ATTR_FIND_MASK_NETDEV,8,3  ; @GID_ATTR_FIND_MASK_NETDEV
.subsections_via_symbols
