	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_mcp_trace_read_meta
_qed_mcp_trace_read_meta:               ## @qed_mcp_trace_read_meta
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	callq	_qed_nvram_read
	movq	_DBG_STATUS_OK@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_11
## %bb.1:
	movq	%rbx, %rdi
	callq	_qed_read_unaligned_dword
	movq	_NVM_MAGIC_VALUE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.3:
	movq	64(%rbx), %rcx
	addq	$72, %rbx
	testq	%rcx, %rcx
	jle	LBB0_9
## %bb.4:
	leaq	-1(%rcx), %rdx
	movl	%ecx, %eax
	andl	$7, %eax
	cmpq	$7, %rdx
	jb	LBB0_7
## %bb.5:
	andq	$-8, %rcx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdx
	leaq	(%rbx,%rdx,8), %rsi
	movq	8(%rbx,%rdx,8), %rdx
	leaq	(%rsi,%rdx,8), %rdi
	addq	$8, %rdi
	movq	16(%rsi,%rdx,8), %rdx
	leaq	8(%rdi,%rdx,8), %rsi
	movq	16(%rdi,%rdx,8), %rdx
	leaq	8(%rsi,%rdx,8), %rdi
	movq	16(%rsi,%rdx,8), %rdx
	leaq	8(%rdi,%rdx,8), %rsi
	movq	16(%rdi,%rdx,8), %rdx
	leaq	8(%rsi,%rdx,8), %rdi
	movq	16(%rsi,%rdx,8), %rdx
	leaq	(%rdi,%rdx,8), %rsi
	addq	$8, %rsi
	movq	16(%rdi,%rdx,8), %rdx
	leaq	(%rsi,%rdx,8), %rbx
	addq	$16, %rbx
	addq	$-8, %rcx
	jne	LBB0_6
LBB0_7:
	testq	%rax, %rax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	leaq	(%rbx,%rcx,8), %rbx
	addq	$8, %rbx
	decq	%rax
	jne	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	callq	_qed_read_unaligned_dword
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.10:
	movl	(%r14), %eax
	jmp	LBB0_11
LBB0_2:
	movq	_DBG_STATUS_INVALID_TRACE_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DBG_STATUS_OK,4,2              ## @DBG_STATUS_OK
	.comm	_NVM_MAGIC_VALUE,8,3            ## @NVM_MAGIC_VALUE
	.comm	_DBG_STATUS_INVALID_TRACE_SIGNATURE,4,2 ## @DBG_STATUS_INVALID_TRACE_SIGNATURE
	.no_dead_strip	_qed_mcp_trace_read_meta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_mcp_trace_read_meta
_qed_mcp_trace_read_meta:               ; @qed_mcp_trace_read_meta
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x4
	bl	_qed_nvram_read
Lloh0:
	adrp	x20, _DBG_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DBG_STATUS_OK@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_qed_read_unaligned_dword
Lloh2:
	adrp	x21, _NVM_MAGIC_VALUE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NVM_MAGIC_VALUE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	add	x0, x19, #72
	ldr	x8, [x19, #64]
	cmp	x8, #1
	b.lt	LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x0]
	add	x9, x0, x9, lsl #3
	add	x0, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_3
LBB0_4:
	bl	_qed_read_unaligned_dword
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x20]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _DBG_STATUS_INVALID_TRACE_SIGNATURE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DBG_STATUS_INVALID_TRACE_SIGNATURE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DBG_STATUS_OK,4,2              ; @DBG_STATUS_OK
	.comm	_NVM_MAGIC_VALUE,8,3            ; @NVM_MAGIC_VALUE
	.comm	_DBG_STATUS_INVALID_TRACE_SIGNATURE,4,2 ; @DBG_STATUS_INVALID_TRACE_SIGNATURE
	.no_dead_strip	_qed_mcp_trace_read_meta
.subsections_via_symbols
