	.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_mfw
_qed_mcp_get_shmem_proto_mfw:           ## @qed_mcp_get_shmem_proto_mfw
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	_DRV_MSG_CODE_GET_PF_RDMA_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %r8
	leaq	-32(%rbp), %r9
	xorl	%ecx, %ecx
	callq	_qed_mcp_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	-40(%rbp), %r8
	movq	_FW_MSG_CODE_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r8
	jne	LBB0_4
## %bb.2:
	movq	-32(%rbp), %r9
	leaq	-128(%r9), %rax
	cmpq	$4, %rax
	jae	LBB0_5
## %bb.3:
	leaq	l_switch.table.qed_mcp_get_shmem_proto_mfw(%rip), %rax
	movq	-1024(%rax,%r9,8), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_7
LBB0_4:
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r8, %rcx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r9, %rdx
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_MSG_CODE_GET_PF_RDMA_PROTOCOL,4,2 ## @DRV_MSG_CODE_GET_PF_RDMA_PROTOCOL
	.comm	_FW_MSG_CODE_OK,8,3             ## @FW_MSG_CODE_OK
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MFW lacks support for command; Returns %08x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_PCI_ETH,4,2                ## @QED_PCI_ETH
	.comm	_QED_PCI_ETH_ROCE,4,2           ## @QED_PCI_ETH_ROCE
	.comm	_QED_PCI_ETH_IWARP,4,2          ## @QED_PCI_ETH_IWARP
	.comm	_QED_PCI_ETH_RDMA,4,2           ## @QED_PCI_ETH_RDMA
L_.str.1:                               ## @.str.1
	.asciz	"MFW answers GET_PF_RDMA_PROTOCOL but param is %08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"According to capabilities, L2 personality is %08x [resp %08x param %08x]\n"

	.no_dead_strip	_qed_mcp_get_shmem_proto_mfw
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qed_mcp_get_shmem_proto_mfw
l_switch.table.qed_mcp_get_shmem_proto_mfw:
	.quad	_QED_PCI_ETH_ROCE
	.quad	_QED_PCI_ETH
	.quad	_QED_PCI_ETH_IWARP
	.quad	_QED_PCI_ETH_RDMA

.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_mfw
_qed_mcp_get_shmem_proto_mfw:           ; @qed_mcp_get_shmem_proto_mfw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x2
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x8, _DRV_MSG_CODE_GET_PF_RDMA_PROTOCOL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV_MSG_CODE_GET_PF_RDMA_PROTOCOL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x4, sp, #24
	add	x5, sp, #16
	mov	w3, #0
	bl	_qed_mcp_cmd
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x3, [sp, #24]
Lloh3:
	adrp	x8, _FW_MSG_CODE_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_MSG_CODE_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x3, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	x2, [sp, #16]
	sub	x8, x2, #128
	cmp	x8, #4
	b.hs	LBB0_5
; %bb.3:
Lloh6:
	adrp	x9, l_switch.table.qed_mcp_get_shmem_proto_mfw@PAGE
Lloh7:
	add	x9, x9, l_switch.table.qed_mcp_get_shmem_proto_mfw@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	w8, [x8]
	str	w8, [x20]
Lloh8:
	adrp	x9, _NETIF_MSG_IFUP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NETIF_MSG_IFUP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	stp	x3, x2, [sp]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x8
	bl	_DP_VERBOSE
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh13:
	adrp	x8, _NETIF_MSG_IFUP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETIF_MSG_IFUP@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
LBB0_6:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_MSG_CODE_GET_PF_RDMA_PROTOCOL,4,2 ; @DRV_MSG_CODE_GET_PF_RDMA_PROTOCOL
	.comm	_FW_MSG_CODE_OK,8,3             ; @FW_MSG_CODE_OK
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MFW lacks support for command; Returns %08x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_PCI_ETH,4,2                ; @QED_PCI_ETH
	.comm	_QED_PCI_ETH_ROCE,4,2           ; @QED_PCI_ETH_ROCE
	.comm	_QED_PCI_ETH_IWARP,4,2          ; @QED_PCI_ETH_IWARP
	.comm	_QED_PCI_ETH_RDMA,4,2           ; @QED_PCI_ETH_RDMA
l_.str.1:                               ; @.str.1
	.asciz	"MFW answers GET_PF_RDMA_PROTOCOL but param is %08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"According to capabilities, L2 personality is %08x [resp %08x param %08x]\n"

	.no_dead_strip	_qed_mcp_get_shmem_proto_mfw
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qed_mcp_get_shmem_proto_mfw
l_switch.table.qed_mcp_get_shmem_proto_mfw:
	.quad	_QED_PCI_ETH_ROCE
	.quad	_QED_PCI_ETH
	.quad	_QED_PCI_ETH_IWARP
	.quad	_QED_PCI_ETH_RDMA

.subsections_via_symbols
