	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_create_ah                  ## -- Begin function rvt_create_ah
	.p2align	4, 0x90
_rvt_create_ah:                         ## @rvt_create_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	%rsi, %r14
	movq	%rdi, %r13
	callq	_ibah_to_rvtah
	movq	%rax, %r15
	movl	(%r13), %edi
	callq	_ib_to_rvt
	movq	%rax, %r12
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_rvt_check_ah
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%r12, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %rax
	cmpq	24(%r12), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	incq	%rax
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_rdma_copy_ah_attr
	movq	8(%r12), %rcx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movl	(%r13), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	*%rcx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_create_ah                  ; -- Begin function rvt_create_ah
	.p2align	2
_rvt_create_ah:                         ; @rvt_create_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, x1
	mov	x20, x0
	bl	_ibah_to_rvtah
	mov	x21, x0
	ldr	w0, [x20]
	bl	_ib_to_rvt
	mov	x22, x0
	ldr	w0, [x20]
	mov	x1, x19
	bl	_rvt_check_ah
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	add	x23, x22, #16
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
	ldr	x9, [x22, #24]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x23
	bl	_spin_unlock_irqrestore
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
LBB0_6:
	add	x8, x8, #1
	str	x8, [x22]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	mov	x1, x19
	bl	_rdma_copy_ah_attr
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x21
	blr	x8
LBB0_8:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
