	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_mcp_get_shmem_proto
_qed_mcp_get_shmem_proto:               ## @qed_mcp_get_shmem_proto
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FUNC_MF_CFG_PROTOCOL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.1:
	movq	%rcx, %r12
	movq	%rdi, %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_NOTICE
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_7:
	movq	_QED_PCI_ISCSI@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	movq	_QED_PCI_FCOE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	%rdx, %r15
	movq	_CONFIG_QED_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_qed_mcp_get_shmem_proto_mfw
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_qed_mcp_get_shmem_proto_legacy
	jmp	LBB0_11
LBB0_3:
	movq	_QED_PCI_ETH@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%r12)
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_FUNC_MF_CFG_PROTOCOL_MASK,4,2  ## @FUNC_MF_CFG_PROTOCOL_MASK
	.comm	_CONFIG_QED_RDMA,4,2            ## @CONFIG_QED_RDMA
	.comm	_QED_PCI_ETH,4,2                ## @QED_PCI_ETH
	.comm	_QED_PCI_ISCSI,4,2              ## @QED_PCI_ISCSI
	.comm	_QED_PCI_FCOE,4,2               ## @QED_PCI_FCOE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RoCE personality is not a valid value!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qed_mcp_get_shmem_proto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_mcp_get_shmem_proto
_qed_mcp_get_shmem_proto:               ; @qed_mcp_get_shmem_proto
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _FUNC_MF_CFG_PROTOCOL_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FUNC_MF_CFG_PROTOCOL_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x3
	mov	x20, x0
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_DP_NOTICE
LBB0_3:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_4:
	mov	w0, #0
Lloh10:
	adrp	x8, _QED_PCI_ISCSI@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QED_PCI_ISCSI@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	mov	w0, #0
Lloh12:
	adrp	x8, _QED_PCI_FCOE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QED_PCI_FCOE@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	mov	x21, x2
Lloh14:
	adrp	x8, _CONFIG_QED_RDMA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CONFIG_QED_RDMA@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_qed_mcp_get_shmem_proto_mfw
	cbz	w0, LBB0_11
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	bl	_qed_mcp_get_shmem_proto_legacy
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh17:
	adrp	x8, _QED_PCI_ETH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _QED_PCI_ETH@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_FUNC_MF_CFG_PROTOCOL_MASK,4,2  ; @FUNC_MF_CFG_PROTOCOL_MASK
	.comm	_CONFIG_QED_RDMA,4,2            ; @CONFIG_QED_RDMA
	.comm	_QED_PCI_ETH,4,2                ; @QED_PCI_ETH
	.comm	_QED_PCI_ISCSI,4,2              ; @QED_PCI_ISCSI
	.comm	_QED_PCI_FCOE,4,2               ; @QED_PCI_FCOE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RoCE personality is not a valid value!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qed_mcp_get_shmem_proto
.subsections_via_symbols
