	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfi1_notify_new_ah
_hfi1_notify_new_ah:                    ## @hfi1_notify_new_ah
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	leaq	8(%rdx), %r12
	movq	%rsi, %rdi
	callq	_rdma_ah_get_port_num
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_to_iport
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	%rax, %r13
	movq	(%rbx), %rbx
	movq	%r12, %rdi
	callq	_rdma_ah_get_sl
	movl	(%rbx,%rax,4), %r14d
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_hfi1_update_ah_attr
	movq	%r12, %rdi
	callq	_hfi1_make_opa_lid
	movq	%r13, %rdi
	callq	_dd_from_ppd
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r14d, %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	callq	_sc_to_vlt
	movl	%eax, (%r14)
	cmpl	$15, %eax
	je	LBB0_2
## %bb.1:
	movq	_num_vls@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_3
LBB0_2:
	movq	(%rbx), %rcx
	cltq
	movl	(%rcx,%rax,4), %edi
	callq	_ilog2
	movl	%eax, 4(%r14)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_vls,4,2                    ## @num_vls
	.no_dead_strip	_hfi1_notify_new_ah
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfi1_notify_new_ah
_hfi1_notify_new_ah:                    ; @hfi1_notify_new_ah
	.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, x2
	mov	x20, x0
	add	x21, x2, #8
	mov	x0, x1
	bl	_rdma_ah_get_port_num
	mov	x1, x0
	mov	x0, x20
	bl	_to_iport
	mov	x22, x0
	bl	_ppd_from_ibp
	mov	x23, x0
	ldr	x22, [x22]
	mov	x0, x21
	bl	_rdma_ah_get_sl
	ldr	w22, [x22, x0, lsl #2]
	mov	x0, x20
	mov	x1, x21
	bl	_hfi1_update_ah_attr
	mov	x0, x21
	bl	_hfi1_make_opa_lid
	mov	x0, x23
	bl	_dd_from_ppd
	mov	x20, x0
	mov	x1, x22
	bl	_sc_to_vlt
	str	w0, [x19]
Lloh0:
	adrp	x8, _num_vls@GOTPAGE
Lloh1:
	ldr	x8, [x8, _num_vls@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #15
	ccmp	w0, w8, #8, ne
	b.ge	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	w0, [x8, w0, sxtw #2]
	bl	_ilog2
	str	w0, [x19, #4]
LBB0_2:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_num_vls,4,2                    ; @num_vls
	.no_dead_strip	_hfi1_notify_new_ah
.subsections_via_symbols
