	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_init_ah_from_mcmember       ## -- Begin function ib_init_ah_from_mcmember
	.p2align	4, 0x90
_ib_init_ah_from_mcmember:              ## @ib_init_ah_from_mcmember
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_rdma_protocol_ib
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_4:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_rdma_protocol_roce
	testl	%eax, %eax
	je	LBB0_5
LBB0_2:
	leaq	28(%r14), %rsi
	leaq	-56(%rbp), %r9
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rcx
	movq	%rbx, %r8
	callq	_ib_find_cached_gid_by_port
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	24(%r14), %edi
	callq	_be16_to_cpu
	movl	%eax, 52(%r12)
	movl	20(%r14), %eax
	movl	%eax, 48(%r12)
	movq	%r15, 40(%r12)
	movl	16(%r14), %eax
	movl	%eax, 36(%r12)
	movq	_IB_AH_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movl	12(%r14), %eax
	movl	%eax, 24(%r12)
	movq	-56(%rbp), %rax
	movq	%rax, 16(%r12)
	movl	8(%r14), %edi
	callq	_be32_to_cpu
	movl	%eax, 8(%r12)
	movl	4(%r14), %eax
	movl	%eax, 4(%r12)
	movl	(%r14), %eax
	movl	%eax, (%r12)
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_AH_GRH,4,2                  ## @IB_AH_GRH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_init_ah_from_mcmember       ; -- Begin function ib_init_ah_from_mcmember
	.p2align	2
_ib_init_ah_from_mcmember:              ; @ib_init_ah_from_mcmember
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x5
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x24, x0
	bl	_rdma_protocol_ib
	cbz	x0, LBB0_2
; %bb.1:
	mov	x23, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x24
	mov	x1, x21
	bl	_rdma_protocol_roce
	cbz	w0, LBB0_5
LBB0_3:
	add	x1, x20, #28
	add	x5, sp, #8
	mov	x0, x24
	mov	x2, x22
	mov	x3, x21
	mov	x4, x23
	bl	_ib_find_cached_gid_by_port
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldr	w0, [x20, #24]
	bl	_be16_to_cpu
	ldp	w9, w8, [x20, #16]
	stp	w8, w0, [x19, #48]
	str	x21, [x19, #40]
Lloh0:
	adrp	x8, _IB_AH_GRH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_AH_GRH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w9, [x19, #32]
	ldp	w0, w8, [x20, #8]
	str	w8, [x19, #24]
	ldr	x8, [sp, #8]
	str	x8, [x19, #16]
	bl	_be32_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
	ldr	d0, [x20]
	str	d0, [x19]
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_AH_GRH,4,2                  ; @IB_AH_GRH
.subsections_via_symbols
