	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_iboe_set_path_rec_l2_fields
_cma_iboe_set_path_rec_l2_fields:       ## @cma_iboe_set_path_rec_l2_fields
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	32(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	36(%rdi), %edi
	callq	_dev_get_by_index
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_roce_gid_type_mask_support
	movl	(%rbx), %edx
	movl	28(%rbx), %edi
	movq	%rax, %rsi
	callq	_cma_route_gid_type
	movl	%eax, %r15d
	movl	28(%rbx), %edi
	callq	_ib_network_to_gid_type
	cmpl	%eax, %r15d
	jae	LBB0_4
## %bb.3:
	movl	28(%rbx), %edi
	callq	_ib_network_to_gid_type
	movl	%eax, %r15d
LBB0_4:
	movl	%r15d, %edi
	callq	_sa_conv_gid_to_pathrec_type
	movq	16(%rbx), %rdi
	movl	%eax, 4(%rdi)
	movl	$1, (%rdi)
	movl	24(%rbx), %esi
	callq	_sa_path_set_dmac
	jmp	LBB0_7
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_GID_TYPE_ROCE,4,2           ## @IB_GID_TYPE_ROCE
	.no_dead_strip	_cma_iboe_set_path_rec_l2_fields
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_iboe_set_path_rec_l2_fields
_cma_iboe_set_path_rec_l2_fields:       ; @cma_iboe_set_path_rec_l2_fields
	.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
	ldr	w1, [x0, #32]
	cbz	w1, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0, #36]
	bl	_dev_get_by_index
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
	ldp	w1, w0, [x20, #8]
	bl	_roce_gid_type_mask_support
	mov	x1, x0
	ldr	w0, [x20, #28]
	ldr	w2, [x20]
	bl	_cma_route_gid_type
	mov	x21, x0
	ldr	w0, [x20, #28]
	bl	_ib_network_to_gid_type
	cmp	w21, w0
	b.hs	LBB0_4
; %bb.3:
	ldr	w0, [x20, #28]
	bl	_ib_network_to_gid_type
	mov	x21, x0
LBB0_4:
	mov	x0, x21
	bl	_sa_conv_gid_to_pathrec_type
	ldr	x8, [x20, #16]
	mov	w9, #1
	stp	w9, w0, [x8]
	ldr	w1, [x20, #24]
	mov	x0, x8
	bl	_sa_path_set_dmac
	b	LBB0_6
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_GID_TYPE_ROCE,4,2           ; @IB_GID_TYPE_ROCE
	.no_dead_strip	_cma_iboe_set_path_rec_l2_fields
.subsections_via_symbols
