	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_query_gid                 ## -- Begin function rdma_query_gid
	.p2align	4, 0x90
_rdma_query_gid:                        ## @rdma_query_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	callq	_rdma_is_port_valid
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_rdma_gid_table
	movq	%rax, %r13
	leaq	4(%rax), %r15
	movq	%r15, %rdi
	callq	_read_lock_irqsave
	testl	%r12d, %r12d
	js	LBB0_6
## %bb.3:
	cmpl	%r12d, (%r13)
	jle	LBB0_6
## %bb.4:
	movq	8(%r13), %rax
	movl	%r12d, %ebx
	movq	(%rax,%rbx,8), %rdi
	callq	_is_gid_entry_valid
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	xorl	%r14d, %r14d
LBB0_6:
	movq	%r15, %rdi
	callq	_read_unlock_irqrestore
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_query_gid                 ; -- Begin function rdma_query_gid
	.p2align	2
_rdma_query_gid:                        ; @rdma_query_gid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x20, _EINVAL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w24, [x20]
	bl	_rdma_is_port_valid
	cbz	w0, LBB0_6
; %bb.1:
	neg	w20, w24
	mov	x0, x23
	mov	x1, x21
	bl	_rdma_gid_table
	mov	x23, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_read_lock_irqsave
	tbnz	w22, #31, LBB0_5
; %bb.2:
	ldr	w8, [x23]
	cmp	w8, w22
	b.le	LBB0_5
; %bb.3:
	ldr	x8, [x23, #8]
	ldr	x0, [x8, w22, uxtw #3]
	bl	_is_gid_entry_valid
	cbz	w0, LBB0_5
; %bb.4:
	mov	w8, w22
	ldr	x9, [x23, #8]
	ldr	x1, [x9, x8, lsl #3]
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	mov	w20, #0
LBB0_5:
	mov	x0, x21
	bl	_read_unlock_irqrestore
	b	LBB0_7
LBB0_6:
	ldr	w8, [x20]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
