	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfi1_update_ah_attr
_hfi1_update_ah_attr:                   ## @hfi1_update_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_rdma_ah_get_dlid
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_rdma_ah_get_port_num
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_to_iport
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	%rax, %r12
	movq	_IB_MULTICAST_LID_BASE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_be16_to_cpu
	cmpq	%rax, %r14
	jge	LBB0_2
## %bb.1:
	movq	(%r12), %r12
	movl	(%rbx), %edi
	callq	_be16_to_cpu
	cmpq	%rax, %r12
	jl	LBB0_5
LBB0_2:
	movq	_OPA_LID_PERMISSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be32_to_cpu
	cmpq	%rax, %r14
	je	LBB0_5
## %bb.3:
	movq	_IB_LID_PERMISSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	cmpq	%rax, %r14
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_rdma_ah_get_ah_flags
	movq	_IB_AH_GRH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %esi
	je	LBB0_7
LBB0_5:
	movq	%r13, %rdi
	callq	_rdma_ah_get_make_grd
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_IB_AH_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_7:
	movq	%r13, %rdi
	callq	_rdma_ah_set_ah_flags
	movq	%r14, %rdi
	callq	_OPA_MAKE_ID
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_rdma_ah_set_interface_id
	movl	(%r15), %esi
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rdma_ah_set_subnet_prefix      ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MULTICAST_LID_BASE,4,2      ## @IB_MULTICAST_LID_BASE
	.comm	_OPA_LID_PERMISSIVE,4,2         ## @OPA_LID_PERMISSIVE
	.comm	_IB_LID_PERMISSIVE,4,2          ## @IB_LID_PERMISSIVE
	.comm	_IB_AH_GRH,4,2                  ## @IB_AH_GRH
	.no_dead_strip	_hfi1_update_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_ah_attr
_hfi1_update_ah_attr:                   ; @hfi1_update_ah_attr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_rdma_ah_get_dlid
	mov	x20, x0
	mov	x0, x19
	bl	_rdma_ah_get_port_num
	mov	x1, x0
	mov	x0, x21
	bl	_to_iport
	mov	x21, x0
	bl	_ppd_from_ibp
	mov	x22, x0
Lloh0:
	adrp	x23, _IB_MULTICAST_LID_BASE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IB_MULTICAST_LID_BASE@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_be16_to_cpu
	cmp	x20, x0
	b.ge	LBB0_2
; %bb.1:
	ldr	x22, [x22]
	ldr	w0, [x23]
	bl	_be16_to_cpu
	cmp	x22, x0
	b.lt	LBB0_5
LBB0_2:
Lloh2:
	adrp	x8, _OPA_LID_PERMISSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OPA_LID_PERMISSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_be32_to_cpu
	cmp	x20, x0
	b.eq	LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _IB_LID_PERMISSIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_LID_PERMISSIVE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_be16_to_cpu
	cmp	x20, x0
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_rdma_ah_get_ah_flags
Lloh8:
	adrp	x8, _IB_AH_GRH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_AH_GRH@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	tst	w1, w0
	b.eq	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_rdma_ah_get_make_grd
	cbz	x0, LBB0_8
; %bb.6:
Lloh11:
	adrp	x8, _IB_AH_GRH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_AH_GRH@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
LBB0_7:
	mov	x0, x19
	bl	_rdma_ah_set_ah_flags
	mov	x0, x20
	bl	_OPA_MAKE_ID
	mov	x1, x0
	mov	x0, x19
	bl	_rdma_ah_set_interface_id
	ldr	w1, [x21]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rdma_ah_set_subnet_prefix
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MULTICAST_LID_BASE,4,2      ; @IB_MULTICAST_LID_BASE
	.comm	_OPA_LID_PERMISSIVE,4,2         ; @OPA_LID_PERMISSIVE
	.comm	_IB_LID_PERMISSIVE,4,2          ; @IB_LID_PERMISSIVE
	.comm	_IB_AH_GRH,4,2                  ; @IB_AH_GRH
	.no_dead_strip	_hfi1_update_ah_attr
.subsections_via_symbols
