	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function roce_get_net_dev_by_cm_event
_roce_get_net_dev_by_cm_event:          ## @roce_get_net_dev_by_cm_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	(%rdx), %rax
	movq	_IB_CM_REQ_RECEIVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	addq	$12, %rdx
	jmp	LBB0_5
LBB0_2:
	movq	_IB_CM_SIDR_REQ_RECEIVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	addq	$8, %rdx
LBB0_5:
	movl	(%rdx), %edx
	leaq	-8(%rbp), %rcx
	leaq	-16(%rbp), %r8
	callq	_ib_get_cached_gid
	testl	%eax, %eax
	jne	LBB0_7
LBB0_8:
	movq	-16(%rbp), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_CM_REQ_RECEIVED,8,3         ## @IB_CM_REQ_RECEIVED
	.comm	_IB_CM_SIDR_REQ_RECEIVED,8,3    ## @IB_CM_SIDR_REQ_RECEIVED
	.no_dead_strip	_roce_get_net_dev_by_cm_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function roce_get_net_dev_by_cm_event
_roce_get_net_dev_by_cm_event:          ; @roce_get_net_dev_by_cm_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _IB_CM_REQ_RECEIVED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_CM_REQ_RECEIVED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x8, x2, #12
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x9, _IB_CM_SIDR_REQ_RECEIVED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_CM_SIDR_REQ_RECEIVED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	add	x8, x2, #8
LBB0_4:
	ldr	w2, [x8]
	mov	x3, sp
	add	x4, sp, #8
	bl	_ib_get_cached_gid
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldr	x8, [sp, #8]
	cmp	w0, #0
	csel	x0, x8, xzr, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_CM_REQ_RECEIVED,8,3         ; @IB_CM_REQ_RECEIVED
	.comm	_IB_CM_SIDR_REQ_RECEIVED,8,3    ; @IB_CM_SIDR_REQ_RECEIVED
	.no_dead_strip	_roce_get_net_dev_by_cm_event
.subsections_via_symbols
