	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rsi), %rax
	leaq	16(%rsi), %r15
	testq	%rax, %rax
	cmoveq	%rax, %r15
	movl	12(%rsi), %ecx
	leaq	-32(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdx
	callq	_cma_save_ip_info
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_rdma_protocol_roce
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdx
	callq	_roce_get_net_dev_by_cm_event
	jmp	LBB0_4
LBB0_3:
	movl	(%rbx), %edx
	leaq	-32(%rbp), %r8
	movq	%r15, %rcx
	callq	_ib_get_net_dev_by_params
LBB0_4:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_validate_net_dev
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_dev_put
	movq	_EHOSTUNREACH@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	movl	%eax, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_10:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EHOSTUNREACH,4,2               ## @EHOSTUNREACH
	.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:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x1, #24]
	add	x9, x1, #16
	cmp	x8, #0
	csel	x19, xzr, x9, eq
	ldr	w3, [x1, #12]
	add	x0, sp, #8
	mov	x1, sp
	mov	x2, x20
	bl	_cma_save_ip_info
	cbnz	w0, LBB0_8
; %bb.1:
	ldp	w1, w0, [x21, #4]
	bl	_rdma_protocol_roce
	mov	x8, x0
	ldp	w1, w0, [x21, #4]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x2, x20
	bl	_roce_get_net_dev_by_cm_event
	mov	x19, x0
	cbz	x0, LBB0_6
LBB0_3:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_validate_net_dev
	cbnz	w0, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_dev_put
Lloh0:
	adrp	x8, _EHOSTUNREACH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EHOSTUNREACH@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w2, [x21]
	add	x4, sp, #8
	mov	x3, x19
	bl	_ib_get_net_dev_by_params
	mov	x19, x0
	cbnz	x0, LBB0_3
LBB0_6:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	bl	_ERR_PTR
	mov	x19, x0
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EHOSTUNREACH,4,2               ; @EHOSTUNREACH
	.no_dead_strip	_cma_get_net_dev
.subsections_via_symbols
