	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_grc_dump
_qed_grc_dump:                          ## @qed_grc_dump
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movl	$0, (%r8)
	movq	$0, 32(%rdi)
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_qed_update_blocks_reset_state
LBB0_2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movl	$4, %r8d
	callq	_qed_dump_common_global_params
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movslq	%eax, %rbx
	leaq	(,%rbx,4), %rdi
	addq	%r13, %rdi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	movl	%r12d, %esi
	callq	_qed_dump_str_param
	addl	%eax, %ebx
	movslq	%ebx, %rbx
	leaq	(,%rbx,4), %r14
	addq	%r13, %r14
	movq	_DBG_GRC_PARAM_NUM_LCIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_qed_grc_get_param
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%rax, %rcx
	callq	_qed_dump_num_param
	addl	%eax, %ebx
	movslq	%ebx, %rbx
	leaq	(,%rbx,4), %r14
	addq	%r13, %r14
	movq	_DBG_GRC_PARAM_NUM_LTIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_qed_grc_get_param
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%rax, %rcx
	callq	_qed_dump_num_param
	addl	%eax, %ebx
	movl	%r12d, %r14d
	movq	%r13, %r12
	movq	%r15, %r13
	movslq	%ebx, %r15
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%r12,%r15,4), %rdi
	movq	24(%rbx), %rcx
	leaq	L_.str.4(%rip), %rdx
	movl	%r14d, %esi
	callq	_qed_dump_num_param
	addl	%eax, %r15d
	movq	_DBG_GRC_PARAM_DUMP_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qed_grc_is_included
	testq	%rax, %rax
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movslq	%r15d, %r15
	leaq	(%r12,%r15,4), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r14d, %ecx
	callq	_qed_grc_dump_reset_regs
	addl	%eax, %r15d
LBB0_4:
	movl	%r14d, %r12d
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.7:
	movq	%rbx, %rdi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_qed_grc_unreset_blocks
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_qed_update_blocks_reset_state
	movq	_DBG_GRC_PARAM_NO_MCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qed_grc_get_param
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
LBB0_6:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	_DBG_GRC_PARAM_DUMP_REGS@GOTPCREL(%rip), %r13
LBB0_13:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_qed_grc_is_included
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movslq	%r15d, %r15
	leaq	(%r14,%r15,4), %rdx
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %ecx
	callq	_qed_grc_dump_modified_regs
	addl	%eax, %r15d
LBB0_15:
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.16:
	movq	_DBG_GRC_PARAM_DUMP_IOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qed_grc_is_included
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	_DBG_GRC_PARAM_DUMP_VFC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qed_grc_is_included
	testq	%rax, %rax
	je	LBB0_19
LBB0_18:
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_qed_grc_stall_storms
LBB0_19:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_qed_grc_is_included
	testq	%rax, %rax
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	je	LBB0_20
## %bb.21:
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	_MAX_BLOCK_ID@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_23
## %bb.22:
	shlq	$2, %rdx
	leaq	L_.memset_pattern(%rip), %rsi
	movq	%r12, %rdi
	callq	_memset_pattern16
LBB0_23:
	movq	_BLOCK_MCP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r12,%rax,4)
	movslq	%r15d, %rbx
	leaq	(%r14,%rbx,4), %rdx
	subq	$8, %rsp
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r12, %r8
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	xorl	%r9d, %r9d
	pushq	$0
	callq	_qed_grc_dump_registers
	addq	$16, %rsp
	addl	%eax, %ebx
	movslq	%ebx, %r15
	movq	%r13, %rbx
	movl	%r14d, %r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,4), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %ecx
	callq	_qed_grc_dump_special_regs
	addl	%eax, %r15d
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	jmp	LBB0_24
LBB0_20:
	movl	%r12d, %r13d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_24:
	movslq	%r15d, %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,4), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %ecx
	callq	_qed_grc_dump_memories
	addl	%eax, %r14d
	movq	_DBG_GRC_PARAM_DUMP_MCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qed_grc_is_included
	testq	%rax, %rax
	movq	%r12, %r15
	je	LBB0_25
## %bb.26:
	movslq	%r14d, %r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	leaq	(%r12,%r14,4), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r13d, %ecx
	callq	_qed_grc_dump_mcp
	addl	%eax, %r14d
	jmp	LBB0_27
LBB0_25:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_27:
	movq	_DBG_GRC_PARAM_DUMP_CM_CTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qed_grc_is_included
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movslq	%r14d, %r14
	leaq	(%r12,%r14,4), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_qed_grc_dump_ctx
	addl	%eax, %r14d
LBB0_29:
	movq	_DBG_GRC_PARAM_DUMP_RSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qed_grc_is_included
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movslq	%r14d, %r14
	leaq	(%r12,%r14,4), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_qed_grc_dump_rss
	addl	%eax, %r14d
LBB0_31:
	movq	_NUM_BIG_RAM_TYPES@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_36
## %bb.32:
	xorl	%r15d, %r15d
	movq	_s_big_ram_defs@GOTPCREL(%rip), %r12
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_33 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jge	LBB0_36
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r15,4), %esi
	movq	%rbx, %rdi
	callq	_qed_grc_is_included
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	movslq	%r14d, %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,4), %rdx
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	callq	_qed_grc_dump_big_ram
	addl	%eax, %r14d
	jmp	LBB0_35
LBB0_36:
	movq	_DBG_GRC_PARAM_DUMP_IOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_qed_grc_is_included
	testq	%rax, %rax
	je	LBB0_37
## %bb.38:
	movslq	%r14d, %r14
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	leaq	(,%r14,4), %rdx
	addq	%r13, %rdx
	movq	%rbx, %rdi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_qed_grc_dump_iors
	addl	%eax, %r14d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_39
LBB0_37:
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_39:
	movq	_DBG_GRC_PARAM_DUMP_VFC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qed_grc_is_included
	testq	%rax, %rax
	je	LBB0_41
## %bb.40:
	movslq	%r14d, %r14
	leaq	(,%r14,4), %rdx
	addq	%r13, %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_qed_grc_dump_vfc
	addl	%eax, %r14d
LBB0_41:
	movq	_DBG_GRC_PARAM_DUMP_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qed_grc_is_included
	testq	%rax, %rax
	je	LBB0_45
## %bb.42:
	movq	(%rbx), %rax
	movq	_CHIP_K2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_45
## %bb.43:
	movq	8(%rbx), %rax
	movq	_PLATFORM_ASIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_45
## %bb.44:
	movslq	%r14d, %r14
	leaq	(,%r14,4), %rdx
	addq	%r13, %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_qed_grc_dump_phy
	addl	%eax, %r14d
LBB0_45:
	movq	_DBG_GRC_PARAM_DUMP_STATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_qed_grc_is_included
	testq	%rax, %rax
	je	LBB0_46
## %bb.47:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_50
## %bb.48:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	_DBG_BUS_STATE_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_49
LBB0_50:
	movslq	%r14d, %rax
	leaq	(,%rax,4), %rdx
	addq	%r13, %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_qed_grc_dump_static_debug
	addl	%r14d, %eax
	movl	%eax, %r14d
	jmp	LBB0_51
LBB0_46:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_51:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_qed_dump_last_section
	movl	%eax, %r13d
	addl	%r14d, %r13d
	testl	%ebx, %ebx
	jne	LBB0_52
	jmp	LBB0_56
LBB0_8:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_qed_mcp_mask_parities
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_NOTICE
	movq	_DBG_GRC_PARAM_PARITY_SAFE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qed_grc_get_param
	testq	%rax, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	_DBG_GRC_PARAM_DUMP_REGS@GOTPCREL(%rip), %r13
	je	LBB0_12
## %bb.11:
	movq	_DBG_STATUS_MCP_COULD_NOT_MASK_PRTY@GOTPCREL(%rip), %rax
	jmp	LBB0_57
LBB0_49:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_qed_dump_last_section
	movl	%eax, %r13d
	addl	%r14d, %r13d
LBB0_52:
	movq	_DBG_GRC_PARAM_UNSTALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_qed_grc_get_param
	testq	%rax, %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_54
## %bb.53:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_qed_grc_stall_storms
LBB0_54:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_grc_clear_all_prty
	cmpb	$0, -84(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_56
## %bb.55:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_qed_mcp_mask_parities
LBB0_56:
	movl	%r13d, (%r12)
	movq	_DBG_STATUS_OK@GOTPCREL(%rip), %rax
LBB0_57:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_59
## %bb.58:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movb	$1, %al
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	jmp	LBB0_6
LBB0_12:
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
LBB0_59:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dump-type"

L_.str.1:                               ## @.str.1
	.asciz	"grc-dump"

L_.str.2:                               ## @.str.2
	.asciz	"num-lcids"

	.comm	_DBG_GRC_PARAM_NUM_LCIDS,4,2    ## @DBG_GRC_PARAM_NUM_LCIDS
L_.str.3:                               ## @.str.3
	.asciz	"num-ltids"

	.comm	_DBG_GRC_PARAM_NUM_LTIDS,4,2    ## @DBG_GRC_PARAM_NUM_LTIDS
L_.str.4:                               ## @.str.4
	.asciz	"num-ports"

	.comm	_DBG_GRC_PARAM_DUMP_REGS,4,2    ## @DBG_GRC_PARAM_DUMP_REGS
	.comm	_DBG_GRC_PARAM_NO_MCP,4,2       ## @DBG_GRC_PARAM_NO_MCP
L_.str.5:                               ## @.str.5
	.asciz	"Failed to mask parities using MFW\n"

	.comm	_DBG_GRC_PARAM_PARITY_SAFE,4,2  ## @DBG_GRC_PARAM_PARITY_SAFE
	.comm	_DBG_STATUS_MCP_COULD_NOT_MASK_PRTY,4,2 ## @DBG_STATUS_MCP_COULD_NOT_MASK_PRTY
	.comm	_DBG_GRC_PARAM_DUMP_IOR,4,2     ## @DBG_GRC_PARAM_DUMP_IOR
	.comm	_DBG_GRC_PARAM_DUMP_VFC,4,2     ## @DBG_GRC_PARAM_DUMP_VFC
	.comm	_MAX_BLOCK_ID,4,2               ## @MAX_BLOCK_ID
	.comm	_BLOCK_MCP,8,3                  ## @BLOCK_MCP
	.comm	_DBG_GRC_PARAM_DUMP_MCP,4,2     ## @DBG_GRC_PARAM_DUMP_MCP
	.comm	_DBG_GRC_PARAM_DUMP_CM_CTX,4,2  ## @DBG_GRC_PARAM_DUMP_CM_CTX
	.comm	_DBG_GRC_PARAM_DUMP_RSS,4,2     ## @DBG_GRC_PARAM_DUMP_RSS
	.comm	_NUM_BIG_RAM_TYPES,4,2          ## @NUM_BIG_RAM_TYPES
	.comm	_s_big_ram_defs,8,3             ## @s_big_ram_defs
	.comm	_DBG_GRC_PARAM_DUMP_PHY,4,2     ## @DBG_GRC_PARAM_DUMP_PHY
	.comm	_CHIP_K2,8,3                    ## @CHIP_K2
	.comm	_PLATFORM_ASIC,8,3              ## @PLATFORM_ASIC
	.comm	_DBG_GRC_PARAM_DUMP_STATIC,4,2  ## @DBG_GRC_PARAM_DUMP_STATIC
	.comm	_DBG_BUS_STATE_IDLE,8,3         ## @DBG_BUS_STATE_IDLE
	.comm	_DBG_GRC_PARAM_UNSTALL,4,2      ## @DBG_GRC_PARAM_UNSTALL
	.comm	_DBG_STATUS_OK,4,2              ## @DBG_STATUS_OK
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1

	.no_dead_strip	_qed_grc_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_grc_dump
_qed_grc_dump:                          ; @qed_grc_dump
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	str	wzr, [x4]
	str	xzr, [x0, #32]
	cbz	w3, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_qed_update_blocks_reset_state
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	w4, #4
	bl	_qed_dump_common_global_params
	mov	x24, x0
	add	x0, x23, w0, sxtw #2
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_qed_dump_str_param
	add	w25, w0, w24
	add	x24, x23, w25, sxtw #2
Lloh7:
	adrp	x8, _DBG_GRC_PARAM_NUM_LCIDS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DBG_GRC_PARAM_NUM_LCIDS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_qed_grc_get_param
	mov	x3, x0
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x24
	mov	x1, x22
	bl	_qed_dump_num_param
	add	w25, w0, w25
	add	x24, x23, w25, sxtw #2
Lloh12:
	adrp	x8, _DBG_GRC_PARAM_NUM_LTIDS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DBG_GRC_PARAM_NUM_LTIDS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_qed_grc_get_param
	mov	x3, x0
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x24
	mov	x1, x22
	bl	_qed_dump_num_param
	add	w24, w0, w25
	add	x0, x23, w24, sxtw #2
	ldr	x3, [x21, #24]
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x1, x22
	bl	_qed_dump_num_param
	add	w25, w0, w24
Lloh19:
	adrp	x24, _DBG_GRC_PARAM_DUMP_REGS@GOTPAGE
Lloh20:
	ldr	x24, [x24, _DBG_GRC_PARAM_DUMP_REGS@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_qed_grc_is_included
	cbz	x0, LBB0_4
; %bb.3:
	add	x2, x23, w25, sxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	bl	_qed_grc_dump_reset_regs
	add	w25, w0, w25
LBB0_4:
	cbz	w22, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	bl	_qed_grc_unreset_blocks
	mov	x0, x21
	mov	x1, x20
	bl	_qed_update_blocks_reset_state
Lloh21:
	adrp	x8, _DBG_GRC_PARAM_NO_MCP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DBG_GRC_PARAM_NO_MCP@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_qed_grc_get_param
	cbz	x0, LBB0_41
LBB0_6:
	mov	w26, #0
LBB0_7:
	ldr	w1, [x24]
	mov	x0, x21
	bl	_qed_grc_is_included
	cbz	x0, LBB0_9
; %bb.8:
	add	x2, x23, w25, sxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	bl	_qed_grc_dump_modified_regs
	add	w25, w0, w25
LBB0_9:
Lloh24:
	adrp	x28, _DBG_GRC_PARAM_DUMP_VFC@GOTPAGE
Lloh25:
	ldr	x28, [x28, _DBG_GRC_PARAM_DUMP_VFC@GOTPAGEOFF]
	cbz	w22, LBB0_13
; %bb.10:
Lloh26:
	adrp	x8, _DBG_GRC_PARAM_DUMP_IOR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DBG_GRC_PARAM_DUMP_IOR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_qed_grc_is_included
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	w1, [x28]
	mov	x0, x21
	bl	_qed_grc_is_included
	cbz	x0, LBB0_13
LBB0_12:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	bl	_qed_grc_stall_storms
LBB0_13:
	ldr	w1, [x24]
	mov	x0, x21
	bl	_qed_grc_is_included
	cbz	x0, LBB0_17
; %bb.14:
	mov	x27, sp
Lloh29:
	adrp	x12, _MAX_BLOCK_ID@GOTPAGE
Lloh30:
	ldr	x12, [x12, _MAX_BLOCK_ID@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh31:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh32:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldr	w8, [x12]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.15:
	lsl	x2, x8, #2
Lloh33:
	adrp	x1, l_.memset_pattern@PAGE
Lloh34:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	mov	x0, x24
	bl	_memset_pattern16
LBB0_16:
Lloh35:
	adrp	x8, _BLOCK_MCP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BLOCK_MCP@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	str	wzr, [x24, x8, lsl #2]
	add	x2, x23, w25, sxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	mov	x4, x24
	mov	x5, #0
	mov	x6, #0
	bl	_qed_grc_dump_registers
	add	w24, w0, w25
	add	x2, x23, w24, sxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	bl	_qed_grc_dump_special_regs
	add	w25, w24, w0
	mov	sp, x27
LBB0_17:
	add	x2, x23, w25, sxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	bl	_qed_grc_dump_memories
	add	w24, w0, w25
Lloh38:
	adrp	x8, _DBG_GRC_PARAM_DUMP_MCP@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DBG_GRC_PARAM_DUMP_MCP@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_qed_grc_is_included
	cbz	x0, LBB0_19
; %bb.18:
	add	x2, x23, w24, sxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	bl	_qed_grc_dump_mcp
	add	w24, w0, w24
LBB0_19:
Lloh41:
	adrp	x8, _DBG_GRC_PARAM_DUMP_CM_CTX@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DBG_GRC_PARAM_DUMP_CM_CTX@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_qed_grc_is_included
	cbz	x0, LBB0_21
; %bb.20:
	add	x2, x23, w24, sxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	bl	_qed_grc_dump_ctx
	add	w24, w0, w24
LBB0_21:
	stur	x19, [x29, #-96]                ; 8-byte Folded Spill
Lloh44:
	adrp	x8, _DBG_GRC_PARAM_DUMP_RSS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _DBG_GRC_PARAM_DUMP_RSS@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_qed_grc_is_included
	mov	x19, x28
	cbz	x0, LBB0_23
; %bb.22:
	add	x2, x23, w24, sxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	bl	_qed_grc_dump_rss
	add	w24, w0, w24
LBB0_23:
	mov	x28, x26
Lloh47:
	adrp	x27, _NUM_BIG_RAM_TYPES@GOTPAGE
Lloh48:
	ldr	x27, [x27, _NUM_BIG_RAM_TYPES@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.24:
	mov	x25, #0
Lloh49:
	adrp	x26, _s_big_ram_defs@GOTPAGE
Lloh50:
	ldr	x26, [x26, _s_big_ram_defs@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x27]
	cmp	x25, x8
	b.ge	LBB0_28
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	w1, [x8, x25, lsl #2]
	mov	x0, x21
	bl	_qed_grc_is_included
	cbz	x0, LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	add	x2, x23, w24, sxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	mov	x4, x25
	bl	_qed_grc_dump_big_ram
	add	w24, w0, w24
	b	LBB0_25
LBB0_28:
Lloh51:
	adrp	x8, _DBG_GRC_PARAM_DUMP_IOR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _DBG_GRC_PARAM_DUMP_IOR@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_qed_grc_is_included
	cbz	x0, LBB0_30
; %bb.29:
	add	x2, x23, w24, sxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	bl	_qed_grc_dump_iors
	add	w24, w0, w24
LBB0_30:
	ldr	w1, [x19]
	mov	x0, x21
	bl	_qed_grc_is_included
	cbz	x0, LBB0_32
; %bb.31:
	add	x2, x23, w24, sxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	bl	_qed_grc_dump_vfc
	add	w24, w0, w24
LBB0_32:
	ldur	x19, [x29, #-96]                ; 8-byte Folded Reload
Lloh54:
	adrp	x8, _DBG_GRC_PARAM_DUMP_PHY@GOTPAGE
Lloh55:
	ldr	x8, [x8, _DBG_GRC_PARAM_DUMP_PHY@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_qed_grc_is_included
	cbz	x0, LBB0_36
; %bb.33:
	ldr	x8, [x21]
Lloh57:
	adrp	x9, _CHIP_K2@GOTPAGE
Lloh58:
	ldr	x9, [x9, _CHIP_K2@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_36
; %bb.34:
	ldr	x8, [x21, #8]
Lloh60:
	adrp	x9, _PLATFORM_ASIC@GOTPAGE
Lloh61:
	ldr	x9, [x9, _PLATFORM_ASIC@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_36
; %bb.35:
	add	x2, x23, w24, sxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	bl	_qed_grc_dump_phy
	add	w24, w0, w24
LBB0_36:
Lloh63:
	adrp	x8, _DBG_GRC_PARAM_DUMP_STATIC@GOTPAGE
Lloh64:
	ldr	x8, [x8, _DBG_GRC_PARAM_DUMP_STATIC@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_qed_grc_is_included
	cbz	x0, LBB0_40
; %bb.37:
	cbz	w22, LBB0_39
; %bb.38:
	ldr	x8, [x21, #16]
Lloh66:
	adrp	x9, _DBG_BUS_STATE_IDLE@GOTPAGE
Lloh67:
	ldr	x9, [x9, _DBG_BUS_STATE_IDLE@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_44
LBB0_39:
	add	x2, x23, w24, sxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	bl	_qed_grc_dump_static_debug
	add	w24, w0, w24
LBB0_40:
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	bl	_qed_dump_last_section
	add	w23, w0, w24
	cbnz	w22, LBB0_45
	b	LBB0_49
LBB0_41:
	mov	w26, #1
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	bl	_qed_mcp_mask_parities
	cbz	w0, LBB0_7
; %bb.42:
Lloh69:
	adrp	x1, l_.str.5@PAGE
Lloh70:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_DP_NOTICE
Lloh71:
	adrp	x8, _DBG_GRC_PARAM_PARITY_SAFE@GOTPAGE
Lloh72:
	ldr	x8, [x8, _DBG_GRC_PARAM_PARITY_SAFE@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_qed_grc_get_param
	cbz	x0, LBB0_6
; %bb.43:
Lloh74:
	adrp	x8, _DBG_STATUS_MCP_COULD_NOT_MASK_PRTY@GOTPAGE
Lloh75:
	ldr	x8, [x8, _DBG_STATUS_MCP_COULD_NOT_MASK_PRTY@GOTPAGEOFF]
	b	LBB0_50
LBB0_44:
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	bl	_qed_dump_last_section
	add	w23, w0, w24
LBB0_45:
Lloh76:
	adrp	x8, _DBG_GRC_PARAM_UNSTALL@GOTPAGE
Lloh77:
	ldr	x8, [x8, _DBG_GRC_PARAM_UNSTALL@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_qed_grc_get_param
	cbz	x0, LBB0_47
; %bb.46:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_qed_grc_stall_storms
LBB0_47:
	mov	x0, x21
	mov	x1, x20
	bl	_qed_grc_clear_all_prty
	cbz	w28, LBB0_49
; %bb.48:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_qed_mcp_mask_parities
LBB0_49:
	str	w23, [x19]
Lloh79:
	adrp	x8, _DBG_STATUS_OK@GOTPAGE
Lloh80:
	ldr	x8, [x8, _DBG_STATUS_OK@GOTPAGEOFF]
LBB0_50:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh81:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh82:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh83:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.51:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_52:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dump-type"

l_.str.1:                               ; @.str.1
	.asciz	"grc-dump"

l_.str.2:                               ; @.str.2
	.asciz	"num-lcids"

	.comm	_DBG_GRC_PARAM_NUM_LCIDS,4,2    ; @DBG_GRC_PARAM_NUM_LCIDS
l_.str.3:                               ; @.str.3
	.asciz	"num-ltids"

	.comm	_DBG_GRC_PARAM_NUM_LTIDS,4,2    ; @DBG_GRC_PARAM_NUM_LTIDS
l_.str.4:                               ; @.str.4
	.asciz	"num-ports"

	.comm	_DBG_GRC_PARAM_DUMP_REGS,4,2    ; @DBG_GRC_PARAM_DUMP_REGS
	.comm	_DBG_GRC_PARAM_NO_MCP,4,2       ; @DBG_GRC_PARAM_NO_MCP
l_.str.5:                               ; @.str.5
	.asciz	"Failed to mask parities using MFW\n"

	.comm	_DBG_GRC_PARAM_PARITY_SAFE,4,2  ; @DBG_GRC_PARAM_PARITY_SAFE
	.comm	_DBG_STATUS_MCP_COULD_NOT_MASK_PRTY,4,2 ; @DBG_STATUS_MCP_COULD_NOT_MASK_PRTY
	.comm	_DBG_GRC_PARAM_DUMP_IOR,4,2     ; @DBG_GRC_PARAM_DUMP_IOR
	.comm	_DBG_GRC_PARAM_DUMP_VFC,4,2     ; @DBG_GRC_PARAM_DUMP_VFC
	.comm	_MAX_BLOCK_ID,4,2               ; @MAX_BLOCK_ID
	.comm	_BLOCK_MCP,8,3                  ; @BLOCK_MCP
	.comm	_DBG_GRC_PARAM_DUMP_MCP,4,2     ; @DBG_GRC_PARAM_DUMP_MCP
	.comm	_DBG_GRC_PARAM_DUMP_CM_CTX,4,2  ; @DBG_GRC_PARAM_DUMP_CM_CTX
	.comm	_DBG_GRC_PARAM_DUMP_RSS,4,2     ; @DBG_GRC_PARAM_DUMP_RSS
	.comm	_NUM_BIG_RAM_TYPES,4,2          ; @NUM_BIG_RAM_TYPES
	.comm	_s_big_ram_defs,8,3             ; @s_big_ram_defs
	.comm	_DBG_GRC_PARAM_DUMP_PHY,4,2     ; @DBG_GRC_PARAM_DUMP_PHY
	.comm	_CHIP_K2,8,3                    ; @CHIP_K2
	.comm	_PLATFORM_ASIC,8,3              ; @PLATFORM_ASIC
	.comm	_DBG_GRC_PARAM_DUMP_STATIC,4,2  ; @DBG_GRC_PARAM_DUMP_STATIC
	.comm	_DBG_BUS_STATE_IDLE,8,3         ; @DBG_BUS_STATE_IDLE
	.comm	_DBG_GRC_PARAM_UNSTALL,4,2      ; @DBG_GRC_PARAM_UNSTALL
	.comm	_DBG_STATUS_OK,4,2              ; @DBG_STATUS_OK
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1

	.no_dead_strip	_qed_grc_dump
.subsections_via_symbols
