	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_grc_dump_phy
_qed_grc_dump_phy:                      ## @qed_grc_dump_phy
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_s_phy_defs@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	leaq	-80(%rbp), %rdx
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	_PHY_DUMP_SIZE_DWORDS@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movq	-128(%rbp), %r13                ## 8-byte Reload
	incq	%r13
	movq	_s_phy_defs@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r13
	leaq	-80(%rbp), %rdx
	jae	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	movq	(%r14), %rax
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movq	%r13, %rcx
	shlq	$5, %rcx
	movl	(%rax,%rcx), %esi
	movl	4(%rax,%rcx), %edi
	addl	%esi, %edi
	movl	%edi, -100(%rbp)                ## 4-byte Spill
	movl	8(%rax,%rcx), %edi
	addl	%esi, %edi
	movl	%edi, -92(%rbp)                 ## 4-byte Spill
	movl	12(%rax,%rcx), %edi
	addl	%esi, %edi
	movl	%edi, -88(%rbp)                 ## 4-byte Spill
	addl	16(%rax,%rcx), %esi
	movl	%esi, -104(%rbp)                ## 4-byte Spill
	movq	24(%rax,%rcx), %rcx
	movq	%rdx, %r14
	movq	%rdx, %rdi
	movl	$32, %esi
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_DP_NOTICE
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %r15
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%r15,4), %rsi
	movq	_PHY_DUMP_SIZE_DWORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	-84(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	$0
	pushq	%r14
	pushq	$1
	pushq	$16
	callq	_qed_grc_dump_mem_hdr
	addq	$48, %rsp
	addl	%eax, %r15d
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NUM_PHY_TBUS_ADDRESSES@GOTPCREL(%rip), %rax
	cmpl	$256, (%rax)                    ## imm = 0x100
	jl	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	-120(%rbp), %rax                ## 4-byte Folded Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	callq	_qed_wr
	xorl	%r14d, %r14d
	movl	-88(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	-100(%rbp), %edx                ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_qed_wr
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_qed_rd
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	-104(%rbp), %edx                ## 4-byte Reload
	callq	_qed_rd
	movq	%rax, 8(%r15)
	addq	$16, %r15
	incl	%r14d
	cmpl	$256, %r14d                     ## imm = 0x100
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	movq	_NUM_PHY_TBUS_ADDRESSES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$8, %eax
	cmpl	%eax, %ecx
	jl	LBB0_7
	jmp	LBB0_10
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_s_phy_defs,8,3                 ## @s_phy_defs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tbus_%s"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected debug error: invalid PHY memory name\n"

	.comm	_PHY_DUMP_SIZE_DWORDS,4,2       ## @PHY_DUMP_SIZE_DWORDS
	.comm	_NUM_PHY_TBUS_ADDRESSES,4,2     ## @NUM_PHY_TBUS_ADDRESSES
	.no_dead_strip	_qed_grc_dump_phy
.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_phy
_qed_grc_dump_phy:                      ; @qed_grc_dump_phy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w3, [sp, #28]                   ; 4-byte Folded Spill
	str	x2, [sp, #32]                   ; 8-byte Folded Spill
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
Lloh3:
	adrp	x20, _s_phy_defs@GOTPAGE
Lloh4:
	ldr	x20, [x20, _s_phy_defs@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	mov	w25, #0
	cbz	x0, LBB0_11
; %bb.1:
	mov	x23, #0
Lloh5:
	adrp	x28, _PHY_DUMP_SIZE_DWORDS@GOTPAGE
Lloh6:
	ldr	x28, [x28, _PHY_DUMP_SIZE_DWORDS@GOTPAGEOFF]
Lloh7:
	adrp	x19, _NUM_PHY_TBUS_ADDRESSES@GOTPAGE
Lloh8:
	ldr	x19, [x19, _NUM_PHY_TBUS_ADDRESSES@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x28, _PHY_DUMP_SIZE_DWORDS@GOTPAGE
Lloh10:
	ldr	x28, [x28, _PHY_DUMP_SIZE_DWORDS@GOTPAGEOFF]
	ldr	w8, [x28]
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	add	w25, w8, w9
	ldr	x23, [sp, #40]                  ; 8-byte Folded Reload
	add	x23, x23, #1
Lloh11:
	adrp	x20, _s_phy_defs@GOTPAGE
Lloh12:
	ldr	x20, [x20, _s_phy_defs@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	x23, x0
	b.hs	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	x8, [x20]
	str	x23, [sp, #40]                  ; 8-byte Folded Spill
	add	x8, x8, x23, lsl #5
	ldp	w23, w26, [x8]
	ldp	w27, w24, [x8, #8]
	ldr	w20, [x8, #16]
	ldr	x3, [x8, #24]
	add	x0, sp, #56
	mov	w1, #32
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	tbz	x0, #63, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP_NOTICE
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x1, x8, w25, sxtw #2
	ldr	w5, [x28]
	add	x8, sp, #56
	stp	x8, xzr, [sp]
	add	x3, sp, #56
	mov	x0, x22
	ldr	w28, [sp, #28]                  ; 4-byte Folded Reload
	mov	x2, x28
	mov	w4, #0
	mov	w6, #16
	mov	w7, #1
	bl	_qed_grc_dump_mem_hdr
	add	w8, w0, w25
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	cbz	w28, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	cmp	w8, #256
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	add	w26, w26, w23
	add	w27, w27, w23
	add	w28, w24, w23
	add	w24, w20, w23
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	add	x20, x8, w9, sxtw #2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	mov	x0, x22
	mov	x1, x21
	mov	x2, x27
	mov	x3, x25
	bl	_qed_wr
	mov	w23, #0
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x22
	mov	x1, x21
	mov	x2, x26
	mov	x3, x23
	bl	_qed_wr
	mov	x0, x22
	mov	x1, x21
	mov	x2, x28
	bl	_qed_rd
	str	x0, [x20]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	_qed_rd
	add	x8, x20, #16
	str	x0, [x20, #8]
	add	w23, w23, #1
	mov	x20, x8
	cmp	w23, #256
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	add	w25, w25, #1
	ldr	w9, [x19]
	cmp	w25, w9, asr #8
	mov	x20, x8
	b.lt	LBB0_8
	b	LBB0_2
LBB0_11:
	ldr	x8, [sp, #88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x25
	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
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_s_phy_defs,8,3                 ; @s_phy_defs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tbus_%s"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected debug error: invalid PHY memory name\n"

	.comm	_PHY_DUMP_SIZE_DWORDS,4,2       ; @PHY_DUMP_SIZE_DWORDS
	.comm	_NUM_PHY_TBUS_ADDRESSES,4,2     ; @NUM_PHY_TBUS_ADDRESSES
	.no_dead_strip	_qed_grc_dump_phy
.subsections_via_symbols
