	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_fill_shmem_func_info   ## -- Begin function qed_mcp_fill_shmem_func_info
	.p2align	4, 0x90
_qed_mcp_fill_shmem_func_info:          ## @qed_mcp_fill_shmem_func_info
	.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	$160, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_MCP_PF_ID
	leaq	-104(%rbp), %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_qed_mcp_get_shmem_func
	movq	_FUNC_MF_CFG_PAUSE_ON_HOST_RING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	-104(%rbp), %eax
	movq	16(%r12), %rbx
	setne	%cl
	movl	%ecx, (%rbx)
	leaq	40(%rbx), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_qed_mcp_get_shmem_proto
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_FUNC_MF_CFG_PROTOCOL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-104(%rbp), %eax
	movslq	%eax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_DP_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_2:
	leaq	-104(%rbp), %rsi
	movq	%r12, %rdi
	callq	_qed_read_pf_bandwidth
	movslq	-100(%rbp), %rcx
	movslq	-96(%rbp), %rax
	movl	%eax, %edx
	orl	%ecx, %edx
	je	LBB0_4
## %bb.3:
	movl	%ecx, %edx
	sarl	$8, %edx
	movslq	%edx, %rdx
	movq	24(%rbx), %rsi
	movq	%rdx, (%rsi)
	movq	24(%rbx), %rdx
	movq	%rcx, 8(%rdx)
	movl	%eax, %ecx
	sarl	$24, %ecx
	movslq	%ecx, %rcx
	movq	24(%rbx), %rdx
	movq	%rcx, 16(%rdx)
	movl	%eax, %ecx
	sarl	$16, %ecx
	movslq	%ecx, %rcx
	movq	24(%rbx), %rdx
	movq	%rcx, 24(%rdx)
	movl	%eax, %ecx
	sarl	$8, %ecx
	movslq	%ecx, %rcx
	movq	24(%rbx), %rdx
	movq	%rcx, 32(%rdx)
	movq	24(%rbx), %rcx
	movq	%rax, 40(%rcx)
	movq	8(%r12), %rdi
	addq	$8, %rdi
	movq	24(%rbx), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_DP_NOTICE
LBB0_5:
	movq	_FUNC_MF_CFG_OV_STAG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-92(%rbp), %eax
	cltq
	movq	%rax, 16(%rbx)
	movq	-88(%rbp), %rax
	movq	%rax, 48(%rbx)
	movq	_QED_WOL_SUPPORT_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	_QED_OV_WOL_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
	movq	%r12, %rdi
	callq	_qed_mcp_is_init
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	$0, -40(%rbp)
	movq	$0, -48(%rbp)
	movq	_DRV_MSG_CODE_OS_WOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %r8
	leaq	-48(%rbp), %r9
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_qed_mcp_cmd
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	-40(%rbp), %rax
	movq	_FW_MSG_CODE_OS_WOL_SUPPORTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_QED_WOL_SUPPORT_PME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_9:
	movq	_QED_MSG_SP@GOTPCREL(%rip), %rax
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	40(%rbx), %r8d
	movl	36(%rbx), %r9d
	movl	32(%rbx), %r10d
	movq	24(%rbx), %rcx
	movups	(%rcx), %xmm0
	movups	16(%rcx), %xmm1
	movups	32(%rcx), %xmm2
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movl	8(%rbx), %edi
	movq	16(%rbx), %rbx
	movq	(%r12), %rax
	movq	%rax, 80(%rsp)
	movq	%rbx, 72(%rsp)
	movl	%edi, 64(%rsp)
	movl	%edx, 56(%rsp)
	movups	%xmm2, 40(%rsp)
	movups	%xmm1, 24(%rsp)
	movups	%xmm0, 8(%rsp)
	movl	%r10d, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	callq	_DP_VERBOSE
	xorl	%eax, %eax
LBB0_10:
	addq	$160, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FUNC_MF_CFG_PAUSE_ON_HOST_RING,4,2 ## @FUNC_MF_CFG_PAUSE_ON_HOST_RING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown personality %08x\n"

	.comm	_FUNC_MF_CFG_PROTOCOL_MASK,4,2  ## @FUNC_MF_CFG_PROTOCOL_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.1:                               ## @.str.1
	.asciz	"MAC is 0 in shmem\n"

	.comm	_FUNC_MF_CFG_OV_STAG_MASK,4,2   ## @FUNC_MF_CFG_OV_STAG_MASK
	.comm	_QED_WOL_SUPPORT_NONE,8,3       ## @QED_WOL_SUPPORT_NONE
	.comm	_QED_OV_WOL_DEFAULT,8,3         ## @QED_OV_WOL_DEFAULT
	.comm	_DRV_MSG_CODE_OS_WOL,4,2        ## @DRV_MSG_CODE_OS_WOL
	.comm	_FW_MSG_CODE_OS_WOL_SUPPORTED,8,3 ## @FW_MSG_CODE_OS_WOL_SUPPORTED
	.comm	_QED_WOL_SUPPORT_PME,8,3        ## @QED_WOL_SUPPORT_PME
	.comm	_QED_MSG_SP,4,2                 ## @QED_MSG_SP
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
L_.str.2:                               ## @.str.2
	.asciz	"Read configuration from shmem: pause_on_host %02x protocol %02x BW [%02x - %02x] MAC %02x:%02x:%02x:%02x:%02x:%02x wwn port %llx node %llx ovlan %04x wol %02x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_fill_shmem_func_info   ; -- Begin function qed_mcp_fill_shmem_func_info
	.p2align	2
_qed_mcp_fill_shmem_func_info:          ; @qed_mcp_fill_shmem_func_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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, x1
	mov	x19, x0
	bl	_MCP_PF_ID
	mov	x3, x0
	add	x2, sp, #88
	mov	x0, x19
	mov	x1, x20
	bl	_qed_mcp_get_shmem_func
	ldr	x21, [x19, #16]
	ldr	w8, [sp, #88]
Lloh0:
	adrp	x9, _FUNC_MF_CFG_PAUSE_ON_HOST_RING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FUNC_MF_CFG_PAUSE_ON_HOST_RING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	mov	x3, x21
	str	w8, [x3], #40
	add	x1, sp, #88
	mov	x0, x19
	mov	x2, x20
	bl	_qed_mcp_get_shmem_proto
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #88]
Lloh3:
	adrp	x9, _FUNC_MF_CFG_PROTOCOL_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FUNC_MF_CFG_PROTOCOL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	sxtw	x2, w8
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	add	x1, sp, #88
	mov	x0, x19
	bl	_qed_read_pf_bandwidth
	ldpsw	x9, x8, [sp, #92]
	orr	w10, w9, w8
	cbz	w10, LBB0_4
; %bb.3:
	mov	x10, x8
	mov	x11, x9
	sbfx	x11, x11, #8, #24
	ldr	x12, [x21, #24]
	str	x11, [x12]
	ldr	x11, [x21, #24]
	str	x9, [x11, #8]
	sbfx	x9, x10, #24, #8
	ldr	x11, [x21, #24]
	str	x9, [x11, #16]
	sbfx	x9, x10, #16, #16
	ldr	x11, [x21, #24]
	str	x9, [x11, #24]
	sbfx	x9, x10, #8, #24
	ldr	x10, [x21, #24]
	str	x9, [x10, #32]
	ldr	x9, [x21, #24]
	str	x8, [x9, #40]
	ldr	x8, [x19, #8]
	add	x0, x8, #8
	ldr	x1, [x21, #24]
Lloh11:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_memcpy
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
LBB0_5:
	ldr	w8, [sp, #100]
Lloh16:
	adrp	x9, _FUNC_MF_CFG_OV_STAG_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FUNC_MF_CFG_OV_STAG_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	and	w8, w9, w8
	sxtw	x8, w8
	str	x8, [x21, #16]
	ldr	x8, [sp, #104]
	str	x8, [x21, #48]
Lloh19:
	adrp	x8, _QED_WOL_SUPPORT_NONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _QED_WOL_SUPPORT_NONE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh22:
	adrp	x8, _QED_OV_WOL_DEFAULT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _QED_OV_WOL_DEFAULT@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	str	x8, [x9]
	mov	x0, x19
	bl	_qed_mcp_is_init
	cbz	x0, LBB0_9
; %bb.6:
	stp	xzr, xzr, [sp, #72]
Lloh25:
	adrp	x8, _DRV_MSG_CODE_OS_WOL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DRV_MSG_CODE_OS_WOL@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	add	x4, sp, #80
	add	x5, sp, #72
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_qed_mcp_cmd
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	x8, [sp, #80]
Lloh28:
	adrp	x9, _FW_MSG_CODE_OS_WOL_SUPPORTED@GOTPAGE
Lloh29:
	ldr	x9, [x9, _FW_MSG_CODE_OS_WOL_SUPPORTED@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh31:
	adrp	x8, _QED_WOL_SUPPORT_PME@GOTPAGE
Lloh32:
	ldr	x8, [x8, _QED_WOL_SUPPORT_PME@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_9:
Lloh34:
	adrp	x8, _QED_MSG_SP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _QED_MSG_SP@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _NETIF_MSG_IFUP@GOTPAGE
Lloh38:
	ldr	x9, [x9, _NETIF_MSG_IFUP@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldp	w5, w4, [x21, #36]
	ldr	w6, [x21, #32]
	ldp	x9, x8, [x21, #16]
	ldr	x7, [x8]
	ldur	q0, [x8, #8]
	ldur	q1, [x8, #24]
	ldr	x8, [x8, #40]
	ldp	w3, w10, [x21]
	ldr	w11, [x21, #8]
	ldr	x12, [x19]
	stp	x9, x12, [sp, #48]
Lloh40:
	adrp	x2, l_.str.2@PAGE
Lloh41:
	add	x2, x2, l_.str.2@PAGEOFF
	stp	w10, w11, [sp, #40]
	str	x8, [sp, #32]
	stp	q0, q1, [sp]
	mov	x0, x19
	bl	_DP_VERBOSE
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_FUNC_MF_CFG_PAUSE_ON_HOST_RING,4,2 ; @FUNC_MF_CFG_PAUSE_ON_HOST_RING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown personality %08x\n"

	.comm	_FUNC_MF_CFG_PROTOCOL_MASK,4,2  ; @FUNC_MF_CFG_PROTOCOL_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.1:                               ; @.str.1
	.asciz	"MAC is 0 in shmem\n"

	.comm	_FUNC_MF_CFG_OV_STAG_MASK,4,2   ; @FUNC_MF_CFG_OV_STAG_MASK
	.comm	_QED_WOL_SUPPORT_NONE,8,3       ; @QED_WOL_SUPPORT_NONE
	.comm	_QED_OV_WOL_DEFAULT,8,3         ; @QED_OV_WOL_DEFAULT
	.comm	_DRV_MSG_CODE_OS_WOL,4,2        ; @DRV_MSG_CODE_OS_WOL
	.comm	_FW_MSG_CODE_OS_WOL_SUPPORTED,8,3 ; @FW_MSG_CODE_OS_WOL_SUPPORTED
	.comm	_QED_WOL_SUPPORT_PME,8,3        ; @QED_WOL_SUPPORT_PME
	.comm	_QED_MSG_SP,4,2                 ; @QED_MSG_SP
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
l_.str.2:                               ; @.str.2
	.asciz	"Read configuration from shmem: pause_on_host %02x protocol %02x BW [%02x - %02x] MAC %02x:%02x:%02x:%02x:%02x:%02x wwn port %llx node %llx ovlan %04x wol %02x\n"

.subsections_via_symbols
