	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r12d
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_rdma_protocol_ib
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_2
LBB0_4:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_rdma_protocol_roce
	testl	%eax, %eax
	je	LBB0_5
LBB0_2:
	leaq	28(%r15), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movq	%r14, %r8
	callq	_rdma_find_gid_by_port
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_rdma_ah_find_type
	movl	%eax, (%r14)
	movl	24(%r15), %edi
	callq	_be16_to_cpu
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rdma_ah_set_dlid
	movl	20(%r15), %esi
	movq	%r14, %rdi
	callq	_rdma_ah_set_sl
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_rdma_ah_set_port_num
	movl	16(%r15), %esi
	movq	%r14, %rdi
	callq	_rdma_ah_set_static_rate
	leaq	12(%r15), %rbx
	movl	8(%r15), %edi
	callq	_be32_to_cpu
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movq	%r12, %r9
	callq	_rdma_move_grh_sgid_attr
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.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:
	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, x5
	mov	x22, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	bl	_rdma_protocol_ib
	cbz	x0, LBB0_2
; %bb.1:
	mov	x24, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x23
	mov	x1, x21
	bl	_rdma_protocol_roce
	cbz	w0, LBB0_6
LBB0_3:
	add	x1, x20, #28
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x24
	bl	_rdma_find_gid_by_port
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x22
	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	_PTR_ERR
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x23
	mov	x1, x21
	bl	_rdma_ah_find_type
	str	w0, [x19]
	ldr	w0, [x20, #24]
	bl	_be16_to_cpu
	mov	x1, x0
	mov	x0, x19
	bl	_rdma_ah_set_dlid
	ldr	w1, [x20, #20]
	mov	x0, x19
	bl	_rdma_ah_set_sl
	mov	x0, x19
	mov	x1, x21
	bl	_rdma_ah_set_port_num
	ldr	w1, [x20, #16]
	mov	x0, x19
	bl	_rdma_ah_set_static_rate
	add	x21, x20, #12
	ldr	w0, [x20, #8]
	bl	_be32_to_cpu
	mov	x2, x0
	ldp	w4, w3, [x20]
	mov	x0, x19
	mov	x1, x21
	mov	x5, x22
	bl	_rdma_move_grh_sgid_attr
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
