	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_get_net_dev
_cma_get_net_dev:                       ## @cma_get_net_dev
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	36(%rsi), %r14
	addq	$32, %rsi
	movq	24(%rbx), %rax
	leaq	16(%rbx), %r15
	testq	%rax, %rax
	cmoveq	%rax, %r15
	movl	12(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_cma_save_ip_info
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_1:
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_rdma_protocol_roce
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_roce_get_net_dev_by_cm_event
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	8(%rbx), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_ib_get_net_dev_by_params
	testq	%rax, %rax
	jne	LBB0_7
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_cma_get_net_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_get_net_dev
_cma_get_net_dev:                       ; @cma_get_net_dev
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x22, x0
	add	x19, x1, #36
	add	x1, x1, #32
	ldr	x8, [x20, #24]
	add	x9, x20, #16
	cmp	x8, #0
	csel	x21, xzr, x9, eq
	ldr	w3, [x20, #12]
	mov	x0, x19
	mov	x2, x22
	bl	_cma_save_ip_info
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_2:
	ldp	w1, w0, [x20, #4]
	bl	_rdma_protocol_roce
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x22
	bl	_roce_get_net_dev_by_cm_event
	cbz	x0, LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldp	w1, w0, [x20, #4]
	ldr	w2, [x20]
	mov	x3, x21
	mov	x4, x19
	bl	_ib_get_net_dev_by_params
	cbnz	x0, LBB0_4
LBB0_6:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_cma_get_net_dev
.subsections_via_symbols
