	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_copy_path_rec_from_user     ## -- Begin function ib_copy_path_rec_from_user
	.p2align	4, 0x90
_ib_copy_path_rec_from_user:            ## @ib_copy_path_rec_from_user
	.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, %r14
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$68, %edx
	callq	_memset
	movq	64(%r14), %rdi
	callq	_ib_is_opa_gid
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	72(%r14), %rdi
	callq	_ib_is_opa_gid
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_SA_PATH_REC_TYPE_OPA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	64(%r14), %rdi
	callq	_opa_get_lid_from_gid
	movl	%eax, %r15d
	movq	72(%r14), %rdi
	callq	_opa_get_lid_from_gid
LBB0_4:
	movl	%eax, %r12d
	movl	60(%rbx), %edi
	movq	72(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	56(%rbx), %edi
	movq	64(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_sa_path_set_dlid
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_sa_path_set_slid
	movl	56(%r14), %esi
	movq	%rbx, %rdi
	callq	_sa_path_set_raw_traffic
	movl	52(%r14), %eax
	movl	%eax, 52(%rbx)
	movl	48(%r14), %eax
	movl	%eax, 48(%rbx)
	movups	32(%r14), %xmm0
	movups	%xmm0, 32(%rbx)
	movups	16(%r14), %xmm0
	movups	%xmm0, 16(%rbx)
	movups	(%r14), %xmm0
	movups	%xmm0, (%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sa_path_set_dmac_zero          ## TAILCALL
LBB0_3:
	movq	_SA_PATH_REC_TYPE_IB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movl	84(%r14), %edi
	callq	_ntohs
	movl	%eax, %r15d
	movl	80(%r14), %edi
	callq	_ntohs
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_SA_PATH_REC_TYPE_OPA,4,2       ## @SA_PATH_REC_TYPE_OPA
	.comm	_SA_PATH_REC_TYPE_IB,4,2        ## @SA_PATH_REC_TYPE_IB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_copy_path_rec_from_user     ; -- Begin function ib_copy_path_rec_from_user
	.p2align	2
_ib_copy_path_rec_from_user:            ; @ib_copy_path_rec_from_user
	.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	x19, x0
	mov	w1, #0
	mov	w2, #68
	bl	_memset
	ldr	x0, [x20, #64]
	bl	_ib_is_opa_gid
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x20, #72]
	bl	_ib_is_opa_gid
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _SA_PATH_REC_TYPE_OPA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SA_PATH_REC_TYPE_OPA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #64]
	ldr	x0, [x20, #64]
	bl	_opa_get_lid_from_gid
	mov	x21, x0
	ldr	x0, [x20, #72]
	bl	_opa_get_lid_from_gid
LBB0_3:
	mov	x22, x0
	ldr	w0, [x19, #60]
	ldr	x1, [x20, #72]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #56]
	ldr	x1, [x20, #64]
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	mov	x1, x22
	bl	_sa_path_set_dlid
	mov	x0, x19
	mov	x1, x21
	bl	_sa_path_set_slid
	ldr	w1, [x20, #56]
	mov	x0, x19
	bl	_sa_path_set_raw_traffic
	ldr	d0, [x20, #48]
	str	d0, [x19, #48]
	ldr	q0, [x20, #32]
	str	q0, [x19, #32]
	ldr	q0, [x20, #16]
	str	q0, [x19, #16]
	ldr	q0, [x20]
	str	q0, [x19]
	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
	b	_sa_path_set_dmac_zero
LBB0_4:
Lloh3:
	adrp	x8, _SA_PATH_REC_TYPE_IB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SA_PATH_REC_TYPE_IB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #64]
	ldr	w0, [x20, #84]
	bl	_ntohs
	mov	x21, x0
	ldr	w0, [x20, #80]
	bl	_ntohs
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SA_PATH_REC_TYPE_OPA,4,2       ; @SA_PATH_REC_TYPE_OPA
	.comm	_SA_PATH_REC_TYPE_IB,4,2        ; @SA_PATH_REC_TYPE_IB
.subsections_via_symbols
