	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_parse_mcp_trace_dump
_qed_parse_mcp_trace_dump:              ## @qed_parse_mcp_trace_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %r13
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	$0, (%rcx)
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_qed_read_section_hdr
	movl	%eax, %r15d
	movq	-56(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_DBG_STATUS_MCP_TRACE_BAD_DATA@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
LBB0_19:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %rax
	leaq	(%rbx,%rax,4), %rbx
	movl	-44(%rbp), %esi
	leaq	-60(%rbp), %rcx
	movq	%rbx, %rdi
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdx
	callq	_qed_print_section_params
	cltq
	leaq	(%rbx,%rax,4), %rbx
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_qed_read_section_hdr
	movl	%eax, %r15d
	movq	-56(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	cmpl	$1, -44(%rbp)
	jne	LBB0_1
## %bb.4:
	movslq	%r15d, %rax
	leaq	(%rbx,%rax,4), %rbx
	leaq	-80(%rbp), %rsi
	leaq	-128(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_qed_read_param
	movl	%eax, %r15d
	movq	-80(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_1
## %bb.5:
	movslq	%r15d, %rax
	leaq	(%rbx,%rax,4), %rbx
	movq	(%rbx), %rax
	movq	_MFW_TRACE_SIGNATURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.6:
	movl	12(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_1
## %bb.7:
	movslq	-48(%rbp), %r15
	movl	8(%rbx), %r12d
	movl	16(%rbx), %edi
	movl	%r12d, %esi
	callq	_qed_cyclic_sub
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	leaq	(%rbx,%r15,4), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	callq	_qed_read_section_hdr
	movl	%eax, %r15d
	movq	-56(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_1
## %bb.8:
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	movslq	%r15d, %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	leaq	-80(%rbp), %rsi
	leaq	-128(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	callq	_qed_read_param
	movl	%eax, %r12d
	movq	-80(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_1
## %bb.9:
	cmpl	$0, -48(%rbp)
	je	LBB0_16
## %bb.10:
	movslq	%r12d, %rax
	leaq	(%r15,%rax,4), %rsi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_16:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_qed_dbg_get_user_data
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
LBB0_11:
	movq	%r15, %rdi
	callq	_qed_mcp_trace_alloc_meta_data
	movq	%r15, %rdi
	movq	_DBG_STATUS_OK@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_19
## %bb.12:
	movl	12(%rbx), %edx
	addq	$96, %rbx
	movslq	-60(%rbp), %r9
	addq	%r13, %r9
	testq	%r13, %r13
	cmoveq	%r13, %r9
	leaq	-92(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rsi
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movl	-88(%rbp), %r8d                 ## 4-byte Reload
	callq	_qed_parse_mcp_trace_buf
	cmpl	(%r15), %eax
	jne	LBB0_19
## %bb.13:
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.14:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_qed_mcp_trace_free_meta_data
LBB0_15:
	movl	-92(%rbp), %eax
	addl	-60(%rbp), %eax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	(%r15), %eax
	jmp	LBB0_19
LBB0_17:
	movq	_DBG_STATUS_MCP_TRACE_NO_META@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"global_params"

	.comm	_DBG_STATUS_MCP_TRACE_BAD_DATA,4,2 ## @DBG_STATUS_MCP_TRACE_BAD_DATA
L_.str.1:                               ## @.str.1
	.asciz	"mcp_trace_data"

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

	.comm	_MFW_TRACE_SIGNATURE,8,3        ## @MFW_TRACE_SIGNATURE
L_.str.3:                               ## @.str.3
	.asciz	"mcp_trace_meta"

	.comm	_DBG_STATUS_MCP_TRACE_NO_META,4,2 ## @DBG_STATUS_MCP_TRACE_NO_META
	.comm	_DBG_STATUS_OK,4,2              ## @DBG_STATUS_OK
	.no_dead_strip	_qed_parse_mcp_trace_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_parse_mcp_trace_dump
_qed_parse_mcp_trace_dump:              ; @qed_parse_mcp_trace_dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	str	wzr, [x3]
	add	x1, sp, #40
	add	x2, sp, #8
	mov	x0, x23
	bl	_qed_read_section_hdr
	mov	x24, x0
	ldr	x0, [sp, #40]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
LBB0_1:
Lloh2:
	adrp	x8, _DBG_STATUS_MCP_TRACE_BAD_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DBG_STATUS_MCP_TRACE_BAD_DATA@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	add	x23, x23, w24, sxtw #2
	ldr	w1, [sp, #8]
	add	x3, sp, #20
	mov	x0, x23
	mov	x2, x22
	bl	_qed_print_section_params
	add	x23, x23, w0, sxtw #2
	add	x1, sp, #40
	add	x2, sp, #8
	mov	x0, x23
	bl	_qed_read_section_hdr
	mov	x24, x0
	ldr	x0, [sp, #40]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_1
; %bb.5:
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.ne	LBB0_1
; %bb.6:
	add	x23, x23, w24, sxtw #2
	add	x1, sp, #32
	add	x2, sp, #24
	add	x3, sp, #12
	mov	x0, x23
	bl	_qed_read_param
	mov	x24, x0
	ldr	x0, [sp, #32]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_1
; %bb.7:
	add	x27, x23, w24, sxtw #2
	ldr	x8, [x27]
Lloh8:
	adrp	x9, _MFW_TRACE_SIGNATURE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MFW_TRACE_SIGNATURE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.8:
	ldr	w2, [x27, #12]
	cbz	w2, LBB0_1
; %bb.9:
	ldrsw	x25, [sp, #12]
	ldr	w23, [x27, #8]
	ldr	w0, [x27, #16]
	mov	x1, x23
	bl	_qed_cyclic_sub
	mov	x24, x0
	add	x25, x27, x25, lsl #2
	add	x1, sp, #40
	add	x2, sp, #8
	mov	x0, x25
	bl	_qed_read_section_hdr
	mov	x26, x0
	ldr	x0, [sp, #40]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_1
; %bb.10:
	add	x25, x25, w26, sxtw #2
	add	x1, sp, #32
	add	x2, sp, #24
	add	x3, sp, #12
	mov	x0, x25
	bl	_qed_read_param
	mov	x26, x0
	ldr	x0, [sp, #32]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_1
; %bb.11:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_13
; %bb.12:
	add	x1, x25, w26, sxtw #2
	b	LBB0_14
LBB0_13:
	mov	x0, x20
	bl	_qed_dbg_get_user_data
	ldr	x1, [x0]
	cbz	x1, LBB0_19
LBB0_14:
	mov	x0, x20
	bl	_qed_mcp_trace_alloc_meta_data
Lloh15:
	adrp	x25, _DBG_STATUS_OK@GOTPAGE
Lloh16:
	ldr	x25, [x25, _DBG_STATUS_OK@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.15:
	add	x1, x27, #96
	ldr	w2, [x27, #12]
	ldrsw	x8, [sp, #20]
	add	x8, x22, x8
	cmp	x22, #0
	csel	x5, xzr, x8, eq
	add	x6, sp, #16
	mov	x0, x20
	mov	x3, x23
	mov	x4, x24
	bl	_qed_parse_mcp_trace_buf
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.16:
	cbz	w21, LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_qed_mcp_trace_free_meta_data
LBB0_18:
	ldp	w9, w8, [sp, #16]
	add	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x25]
	b	LBB0_3
LBB0_19:
Lloh17:
	adrp	x8, _DBG_STATUS_MCP_TRACE_NO_META@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DBG_STATUS_MCP_TRACE_NO_META@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"global_params"

	.comm	_DBG_STATUS_MCP_TRACE_BAD_DATA,4,2 ; @DBG_STATUS_MCP_TRACE_BAD_DATA
l_.str.1:                               ; @.str.1
	.asciz	"mcp_trace_data"

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

	.comm	_MFW_TRACE_SIGNATURE,8,3        ; @MFW_TRACE_SIGNATURE
l_.str.3:                               ; @.str.3
	.asciz	"mcp_trace_meta"

	.comm	_DBG_STATUS_MCP_TRACE_NO_META,4,2 ; @DBG_STATUS_MCP_TRACE_NO_META
	.comm	_DBG_STATUS_OK,4,2              ; @DBG_STATUS_OK
	.no_dead_strip	_qed_parse_mcp_trace_dump
.subsections_via_symbols
