	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_get_gid_attr              ## -- Begin function rdma_get_gid_attr
	.p2align	4, 0x90
_rdma_get_gid_attr:                     ## @rdma_get_gid_attr
	.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
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_EINVAL@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	subl	(%r14), %edi
	callq	_ERR_PTR
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_rdma_is_port_valid
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_rdma_gid_table
	testl	%r13d, %r13d
	js	LBB0_5
## %bb.4:
	movq	%rax, %r15
	cmpl	%r13d, (%rax)
	jle	LBB0_5
## %bb.6:
	movq	%r15, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_read_lock_irqsave
	movq	8(%r15), %rax
	movl	%r13d, %ebx
	movq	(%rax,%rbx,8), %rdi
	callq	_is_gid_entry_valid
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_get_gid_entry
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rbx
	jmp	LBB0_9
LBB0_5:
	xorl	%edi, %edi
	subl	(%r14), %edi
	jmp	LBB0_2
LBB0_1:
	subl	(%r14), %r12d
	movl	%r12d, %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_7:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:
	movq	%r12, %rdi
	callq	_read_unlock_irqrestore
	movq	%rbx, %rax
	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_get_gid_attr              ; -- Begin function rdma_get_gid_attr
	.p2align	2
_rdma_get_gid_attr:                     ; @rdma_get_gid_attr
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _EINVAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x23]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x19, x0
	mov	x0, x22
	mov	x1, x21
	bl	_rdma_is_port_valid
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	bl	_rdma_gid_table
	tbnz	w20, #31, LBB0_6
; %bb.2:
	mov	x22, x0
	ldr	w8, [x0]
	cmp	w8, w20
	b.le	LBB0_6
; %bb.3:
	add	x21, x22, #4
	mov	x0, x21
	bl	_read_lock_irqsave
	ldr	x8, [x22, #8]
	ldr	x0, [x8, w20, uxtw #3]
	bl	_is_gid_entry_valid
	cbz	w0, LBB0_5
; %bb.4:
	mov	w8, w20
	ldr	x9, [x22, #8]
	lsl	x19, x8, #3
	ldr	x0, [x9, x19]
	bl	_get_gid_entry
	ldr	x8, [x22, #8]
	ldr	x19, [x8, x19]
LBB0_5:
	mov	x0, x21
	bl	_read_unlock_irqrestore
	mov	x0, x19
	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
LBB0_6:
	ldr	w8, [x23]
	neg	w0, w8
	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
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
