	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_port_attr_to_resp         ## -- Begin function copy_port_attr_to_resp
	.p2align	4, 0x90
_copy_port_attr_to_resp:                ## @copy_port_attr_to_resp
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movups	56(%rdi), %xmm0
	movups	%xmm0, 80(%rsi)
	callq	_make_port_cap_flags
	movl	%eax, 76(%rbx)
	movups	40(%r12), %xmm0
	movups	%xmm0, 60(%rbx)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_rdma_is_grh_required
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IB_UVERBS_QPF_GRH_REQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 56(%rbx)
LBB0_2:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_rdma_cap_opa_ah
	movl	36(%r12), %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_OPA_TO_IB_UCAST_LID
	movq	%rax, 48(%rbx)
	movl	32(%r12), %edi
	callq	_OPA_TO_IB_UCAST_LID
	jmp	LBB0_5
LBB0_4:
	callq	_ib_lid_cpu16
	movq	%rax, 48(%rbx)
	movl	32(%r12), %edi
	callq	_ib_lid_cpu16
LBB0_5:
	movq	%rax, 40(%rbx)
	movups	16(%r12), %xmm0
	movups	%xmm0, 20(%rbx)
	movups	(%r12), %xmm0
	movups	%xmm0, 4(%rbx)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_rdma_port_get_link_layer
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_UVERBS_QPF_GRH_REQUIRED,4,2 ## @IB_UVERBS_QPF_GRH_REQUIRED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_port_attr_to_resp         ; -- Begin function copy_port_attr_to_resp
	.p2align	2
_copy_port_attr_to_resp:                ; @copy_port_attr_to_resp
	.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, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldur	q0, [x0, #56]
	str	q0, [x1, #80]
	bl	_make_port_cap_flags
	str	w0, [x19, #76]
	ldur	q0, [x22, #40]
	stur	q0, [x19, #60]
	mov	x0, x21
	mov	x1, x20
	bl	_rdma_is_grh_required
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _IB_UVERBS_QPF_GRH_REQUIRED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_UVERBS_QPF_GRH_REQUIRED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #56]
	orr	w8, w9, w8
	str	w8, [x19, #56]
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	bl	_rdma_cap_opa_ah
	mov	x8, x0
	ldr	w0, [x22, #36]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_OPA_TO_IB_UCAST_LID
	str	x0, [x19, #48]
	ldr	w0, [x22, #32]
	bl	_OPA_TO_IB_UCAST_LID
	b	LBB0_5
LBB0_4:
	bl	_ib_lid_cpu16
	str	x0, [x19, #48]
	ldr	w0, [x22, #32]
	bl	_ib_lid_cpu16
LBB0_5:
	str	x0, [x19, #40]
	ldr	q0, [x22, #16]
	stur	q0, [x19, #20]
	ldr	q0, [x22]
	stur	q0, [x19, #4]
	mov	x0, x21
	mov	x1, x20
	bl	_rdma_port_get_link_layer
	str	w0, [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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_UVERBS_QPF_GRH_REQUIRED,4,2 ; @IB_UVERBS_QPF_GRH_REQUIRED
.subsections_via_symbols
