	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdma_ah_conv_opa_to_ib
_rdma_ah_conv_opa_to_ib:                ## @rdma_ah_conv_opa_to_ib
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rdx), %rax
	movq	%rax, (%rsi)
	movq	_RDMA_AH_ATTR_TYPE_IB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rsi)
	xorl	%r14d, %r14d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_rdma_ah_set_grh
	movl	(%r15), %esi
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	callq	_ib_query_port
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_OPA_DEFAULT_GID_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rdma_ah_set_subnet_prefix
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movl	-40(%rbp), %edi
	callq	_cpu_to_be64
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_rdma_ah_set_subnet_prefix
LBB0_3:
	movq	%r15, %rdi
	callq	_rdma_ah_get_dlid
	movl	%eax, %edi
	callq	_OPA_MAKE_ID
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_rdma_ah_set_interface_id
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_AH_ATTR_TYPE_IB,4,2       ## @RDMA_AH_ATTR_TYPE_IB
	.comm	_OPA_DEFAULT_GID_PREFIX,4,2     ## @OPA_DEFAULT_GID_PREFIX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rdma_ah_conv_opa_to_ib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdma_ah_conv_opa_to_ib
_rdma_ah_conv_opa_to_ib:                ; @rdma_ah_conv_opa_to_ib
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x2]
	str	x8, [x1]
Lloh0:
	adrp	x8, _RDMA_AH_ATTR_TYPE_IB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDMA_AH_ATTR_TYPE_IB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #4]
	mov	x0, x1
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #1
	mov	w5, #0
	bl	_rdma_ah_set_grh
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x21
	bl	_ib_query_port
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _OPA_DEFAULT_GID_PREFIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPA_DEFAULT_GID_PREFIX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rdma_ah_set_subnet_prefix
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_3
LBB0_2:
	ldr	w0, [sp, #8]
	bl	_cpu_to_be64
	mov	x1, x0
	mov	x0, x19
	bl	_rdma_ah_set_subnet_prefix
	mov	w21, #0
LBB0_3:
	mov	x0, x20
	bl	_rdma_ah_get_dlid
	bl	_OPA_MAKE_ID
	mov	x1, x0
	mov	x0, x19
	bl	_rdma_ah_set_interface_id
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_AH_ATTR_TYPE_IB,4,2       ; @RDMA_AH_ATTR_TYPE_IB
	.comm	_OPA_DEFAULT_GID_PREFIX,4,2     ; @OPA_DEFAULT_GID_PREFIX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rdma_ah_conv_opa_to_ib
.subsections_via_symbols
