	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfi1_update_sm_ah_attr
_hfi1_update_sm_ah_attr:                ## @hfi1_update_sm_ah_attr
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_rdma_ah_set_dlid
	movq	%r14, %rdi
	callq	_ppd_from_ibp
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rdma_ah_set_port_num
	movq	_IB_MULTICAST_LID_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	cmpq	%r15, %rax
	jg	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_rdma_ah_retrieve_grh
	movq	%rax, %r12
	movq	_IB_AH_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rdma_ah_set_ah_flags
	movq	$0, 16(%r12)
	movl	$1, (%r12)
	movl	(%r14), %eax
	movl	%eax, 8(%r12)
	movq	%r15, %rdi
	callq	_OPA_MAKE_ID
	movl	%eax, 4(%r12)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MULTICAST_LID_BASE,4,2      ## @IB_MULTICAST_LID_BASE
	.comm	_IB_AH_GRH,4,2                  ## @IB_AH_GRH
	.no_dead_strip	_hfi1_update_sm_ah_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfi1_update_sm_ah_attr
_hfi1_update_sm_ah_attr:                ; @hfi1_update_sm_ah_attr
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x2
	bl	_rdma_ah_set_dlid
	mov	x0, x20
	bl	_ppd_from_ibp
	ldr	w1, [x0]
	mov	x0, x21
	bl	_rdma_ah_set_port_num
Lloh0:
	adrp	x8, _IB_MULTICAST_LID_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MULTICAST_LID_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_be16_to_cpu
	cmp	x0, x19
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_rdma_ah_retrieve_grh
	mov	x22, x0
Lloh3:
	adrp	x8, _IB_AH_GRH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_AH_GRH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rdma_ah_set_ah_flags
	str	xzr, [x22, #16]
	mov	w8, #1
	str	w8, [x22]
	ldr	w8, [x20]
	str	w8, [x22, #8]
	mov	x0, x19
	bl	_OPA_MAKE_ID
	str	w0, [x22, #4]
LBB0_2:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MULTICAST_LID_BASE,4,2      ; @IB_MULTICAST_LID_BASE
	.comm	_IB_AH_GRH,4,2                  ; @IB_AH_GRH
	.no_dead_strip	_hfi1_update_sm_ah_attr
.subsections_via_symbols
