	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_reg_fifo_dump
_qed_reg_fifo_dump:                     ## @qed_reg_fifo_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	$40, %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, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	$0, (%r8)
	movl	$1, %r8d
	callq	_qed_dump_common_global_params
	movslq	%eax, %r14
	leaq	(%r15,%r14,4), %rdi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	movl	%r12d, %esi
	callq	_qed_dump_str_param
	addl	%eax, %r14d
	movslq	%r14d, %r14
	leaq	(%r15,%r14,4), %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	%r12d, %esi
	movl	$1, %ecx
	callq	_qed_dump_section_hdr
	addl	%eax, %r14d
	movslq	%r14d, %r14
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r14,4), %rdi
	leaq	L_.str.3(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	callq	_qed_dump_num_param
	addl	%eax, %r14d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movq	_GRC_REG_TRACE_FIFO_VALID_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_qed_rd
	movq	%rax, %r12
	movq	_GRC_REG_TRACE_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BYTES_TO_DWORDS
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testq	%r12, %r12
	jle	LBB0_7
## %bb.3:
	movq	_REG_FIFO_DEPTH_DWORDS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.4:
	movq	_REG_FIFO_ELEMENT_DWORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r14d, %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,4), %rdx
	movq	_SPLIT_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$1, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r9d
	pushq	$0
	pushq	%rax
	pushq	$1
	callq	_qed_grc_dump_addr_range
	addq	$32, %rsp
	addl	%eax, %r14d
	movq	_GRC_REG_TRACE_FIFO_VALID_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_qed_rd
	movq	_REG_FIFO_ELEMENT_DWORDS@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r15d
	testq	%rax, %rax
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_REG_FIFO_DEPTH_DWORDS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jl	LBB0_5
LBB0_7:
	leaq	L_.str.3(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r15d, %ecx
	callq	_qed_dump_num_param
	jmp	LBB0_8
LBB0_1:
	movq	_REG_FIFO_DEPTH_DWORDS@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_8:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_qed_dump_last_section
	addl	%r14d, %eax
	movl	%eax, (%r15)
	movq	_DBG_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dump-type"

L_.str.1:                               ## @.str.1
	.asciz	"reg-fifo"

L_.str.2:                               ## @.str.2
	.asciz	"reg_fifo_data"

L_.str.3:                               ## @.str.3
	.asciz	"size"

	.comm	_REG_FIFO_DEPTH_DWORDS,4,2      ## @REG_FIFO_DEPTH_DWORDS
	.comm	_GRC_REG_TRACE_FIFO_VALID_DATA,4,2 ## @GRC_REG_TRACE_FIFO_VALID_DATA
	.comm	_GRC_REG_TRACE_FIFO,4,2         ## @GRC_REG_TRACE_FIFO
	.comm	_REG_FIFO_ELEMENT_DWORDS,4,2    ## @REG_FIFO_ELEMENT_DWORDS
	.comm	_SPLIT_TYPE_NONE,4,2            ## @SPLIT_TYPE_NONE
	.comm	_DBG_STATUS_OK,4,2              ## @DBG_STATUS_OK
	.no_dead_strip	_qed_reg_fifo_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_reg_fifo_dump
_qed_reg_fifo_dump:                     ; @qed_reg_fifo_dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x4
	mov	x25, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	str	wzr, [x4]
	mov	w4, #1
	bl	_qed_dump_common_global_params
	mov	x24, x0
	add	x0, x21, w0, sxtw #2
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x1, x25
	bl	_qed_dump_str_param
	add	w19, w0, w24
	add	x0, x21, w19, sxtw #2
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x25
	mov	w3, #1
	bl	_qed_dump_section_hdr
	add	w19, w19, w0
	add	x26, x21, w19, sxtw #2
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x26
	mov	x1, x25
	mov	w3, #0
	bl	_qed_dump_num_param
	add	w24, w19, w0
	cbz	w25, LBB0_3
; %bb.1:
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	str	w25, [sp, #20]                  ; 4-byte Folded Spill
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
Lloh8:
	adrp	x25, _GRC_REG_TRACE_FIFO_VALID_DATA@GOTPAGE
Lloh9:
	ldr	x25, [x25, _GRC_REG_TRACE_FIFO_VALID_DATA@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x23
	mov	x1, x22
	bl	_qed_rd
	mov	x26, x0
Lloh10:
	adrp	x8, _GRC_REG_TRACE_FIFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GRC_REG_TRACE_FIFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_BYTES_TO_DWORDS
Lloh13:
	adrp	x20, _REG_FIFO_DEPTH_DWORDS@GOTPAGE
Lloh14:
	ldr	x20, [x20, _REG_FIFO_DEPTH_DWORDS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	x26, #1
	ccmp	w8, #1, #8, ge
	b.ge	LBB0_4
; %bb.2:
	mov	w26, #0
	b	LBB0_6
LBB0_3:
Lloh15:
	adrp	x8, _REG_FIFO_DEPTH_DWORDS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_FIFO_DEPTH_DWORDS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	w24, w8, w24
	b	LBB0_7
LBB0_4:
	mov	x27, x0
	mov	w26, #0
Lloh18:
	adrp	x8, _REG_FIFO_ELEMENT_DWORDS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_FIFO_ELEMENT_DWORDS@GOTPAGEOFF]
Lloh20:
	ldr	w28, [x8]
Lloh21:
	adrp	x19, _SPLIT_TYPE_NONE@GOTPAGE
Lloh22:
	ldr	x19, [x19, _SPLIT_TYPE_NONE@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, x21, w24, sxtw #2
	ldr	w7, [x19]
	str	wzr, [sp]
	mov	x0, x23
	mov	x1, x22
	mov	w3, #1
	mov	x4, x27
	mov	x5, x28
	mov	w6, #1
	bl	_qed_grc_dump_addr_range
	add	w24, w0, w24
	ldr	w2, [x25]
	mov	x0, x23
	mov	x1, x22
	bl	_qed_rd
Lloh23:
	adrp	x8, _REG_FIFO_ELEMENT_DWORDS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _REG_FIFO_ELEMENT_DWORDS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	add	w26, w8, w26
	ldr	w8, [x20]
	cmp	x0, #1
	ccmp	w26, w8, #0, ge
	b.lt	LBB0_5
LBB0_6:
Lloh26:
	adrp	x2, l_.str.3@PAGE
Lloh27:
	add	x2, x2, l_.str.3@PAGEOFF
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w25, [sp, #20]                  ; 4-byte Folded Reload
	mov	x1, x25
	mov	x3, x26
	bl	_qed_dump_num_param
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
LBB0_7:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x25
	bl	_qed_dump_last_section
	add	w8, w0, w24
	str	w8, [x20]
Lloh28:
	adrp	x8, _DBG_STATUS_OK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DBG_STATUS_OK@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dump-type"

l_.str.1:                               ; @.str.1
	.asciz	"reg-fifo"

l_.str.2:                               ; @.str.2
	.asciz	"reg_fifo_data"

l_.str.3:                               ; @.str.3
	.asciz	"size"

	.comm	_REG_FIFO_DEPTH_DWORDS,4,2      ; @REG_FIFO_DEPTH_DWORDS
	.comm	_GRC_REG_TRACE_FIFO_VALID_DATA,4,2 ; @GRC_REG_TRACE_FIFO_VALID_DATA
	.comm	_GRC_REG_TRACE_FIFO,4,2         ; @GRC_REG_TRACE_FIFO
	.comm	_REG_FIFO_ELEMENT_DWORDS,4,2    ; @REG_FIFO_ELEMENT_DWORDS
	.comm	_SPLIT_TYPE_NONE,4,2            ; @SPLIT_TYPE_NONE
	.comm	_DBG_STATUS_OK,4,2              ; @DBG_STATUS_OK
	.no_dead_strip	_qed_reg_fifo_dump
.subsections_via_symbols
