	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_mcp_trace_alloc_meta_data
_qed_mcp_trace_alloc_meta_data:         ## @qed_mcp_trace_alloc_meta_data
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	callq	_qed_dbg_get_user_data
	movq	%rax, %r13
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_qed_mcp_trace_free_meta_data
LBB0_2:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qed_read_dword_from_buf
	movq	_NVM_MAGIC_VALUE@GOTPCREL(%rip), %rdx
	movq	_DBG_STATUS_INVALID_TRACE_SIGNATURE@GOTPCREL(%rip), %rcx
	cmpq	(%rdx), %rax
	jne	LBB0_22
## %bb.3:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qed_read_byte_from_buf
	movq	%rax, 8(%r13)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 16(%r13)
	movq	_DBG_STATUS_VIRT_MEM_ALLOC_FAILED@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_22
## %bb.4:
	cmpq	$0, 8(%r13)
	jle	LBB0_10
## %bb.5:
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	cmpq	8(%r13), %r12
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qed_read_byte_from_buf
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kzalloc
	movq	16(%r13), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	16(%r13), %rax
	movq	(%rax,%r12,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_qed_read_str_from_buf
	movq	_MCP_TRACE_MAX_MODULE_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, %rax
	jae	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13), %rcx
	movq	(%rcx,%r12,8), %rcx
	movb	$0, (%rcx,%rax)
	jmp	LBB0_6
LBB0_10:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qed_read_dword_from_buf
	movq	_NVM_MAGIC_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_DBG_STATUS_INVALID_TRACE_SIGNATURE@GOTPCREL(%rip), %rcx
	jne	LBB0_22
## %bb.11:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qed_read_dword_from_buf
	movq	%rax, 24(%r13)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_kcalloc
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	je	LBB0_21
## %bb.12:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	cmpq	$0, 24(%r13)
	jle	LBB0_18
## %bb.13:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$8, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %r14
	movq	%r12, %rsi
	callq	_qed_read_dword_from_buf
	movq	%rax, %rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, -8(%rax,%r15)
	movq	_MCP_TRACE_FORMAT_LEN_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	_MCP_TRACE_FORMAT_LEN_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shrq	%cl, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kzalloc
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r15)
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %r14
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_qed_read_str_from_buf
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	24(%r13), %rax
	jge	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	32(%r13), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	incq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	$16, %r15
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %r12
	jmp	LBB0_14
LBB0_17:
	xorl	%eax, %eax
	subq	$1, %r12
	cmovaeq	%r12, %rax
	movq	%rax, 8(%r13)
LBB0_21:
	movq	_DBG_STATUS_VIRT_MEM_ALLOC_FAILED@GOTPCREL(%rip), %rcx
	jmp	LBB0_22
LBB0_18:
	movl	$1, (%r13)
	movq	_DBG_STATUS_OK@GOTPCREL(%rip), %rcx
LBB0_22:
	movl	(%rcx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	-2(%rdx), %rax
	xorl	%ecx, %ecx
	cmpq	$1, %rdx
	cmovneq	%rax, %rcx
	movq	%rcx, 24(%r13)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_NVM_MAGIC_VALUE,8,3            ## @NVM_MAGIC_VALUE
	.comm	_DBG_STATUS_INVALID_TRACE_SIGNATURE,4,2 ## @DBG_STATUS_INVALID_TRACE_SIGNATURE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DBG_STATUS_VIRT_MEM_ALLOC_FAILED,4,2 ## @DBG_STATUS_VIRT_MEM_ALLOC_FAILED
	.comm	_MCP_TRACE_MAX_MODULE_LEN,8,3   ## @MCP_TRACE_MAX_MODULE_LEN
	.comm	_MCP_TRACE_FORMAT_LEN_MASK,8,3  ## @MCP_TRACE_FORMAT_LEN_MASK
	.comm	_MCP_TRACE_FORMAT_LEN_SHIFT,8,3 ## @MCP_TRACE_FORMAT_LEN_SHIFT
	.comm	_DBG_STATUS_OK,4,2              ## @DBG_STATUS_OK
	.no_dead_strip	_qed_mcp_trace_alloc_meta_data
.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_alloc_meta_data
_qed_mcp_trace_alloc_meta_data:         ; @qed_mcp_trace_alloc_meta_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	bl	_qed_dbg_get_user_data
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_qed_mcp_trace_free_meta_data
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x1, sp, #8
	mov	x0, x20
	bl	_qed_read_dword_from_buf
Lloh0:
	adrp	x23, _NVM_MAGIC_VALUE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NVM_MAGIC_VALUE@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.3:
	add	x1, sp, #8
	mov	x0, x20
	bl	_qed_read_byte_from_buf
	str	x0, [x19, #8]
Lloh2:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_19
; %bb.4:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x24, #0
Lloh4:
	adrp	x25, _MCP_TRACE_MAX_MODULE_LEN@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MCP_TRACE_MAX_MODULE_LEN@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldr	x8, [x19, #8]
	cmp	x24, x8
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_qed_read_byte_from_buf
	mov	x21, x0
	ldr	w1, [x22]
	bl	_kzalloc
	ldr	x8, [x19, #16]
	lsl	x9, x24, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	x3, [x8, x9]
	cbz	x3, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	bl	_qed_read_str_from_buf
	ldr	x8, [x25]
	cmp	x8, x21
	b.hs	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x24, lsl #3]
	strb	wzr, [x9, x8]
	b	LBB0_6
LBB0_10:
	add	x1, sp, #8
	mov	x0, x20
	bl	_qed_read_dword_from_buf
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.11:
	add	x1, sp, #8
	mov	x0, x20
	bl	_qed_read_dword_from_buf
	str	x0, [x19, #24]
	ldr	w2, [x22]
	mov	w1, #16
	bl	_kcalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_19
; %bb.12:
	ldr	x8, [x19, #24]
	cmp	x8, #1
	b.lt	LBB0_21
; %bb.13:
	mov	x21, x0
	mov	x23, #0
	mov	w24, #1
Lloh6:
	adrp	x25, _MCP_TRACE_FORMAT_LEN_MASK@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MCP_TRACE_FORMAT_LEN_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x26, _MCP_TRACE_FORMAT_LEN_SHIFT@GOTPAGE
Lloh9:
	ldr	x26, [x26, _MCP_TRACE_FORMAT_LEN_SHIFT@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_qed_read_dword_from_buf
	add	x27, x21, x23
	str	x0, [x27]
	ldr	x8, [x25]
	and	x8, x8, x0
	ldr	x9, [x26]
	lsr	x21, x8, x9
	ldr	w1, [x22]
	mov	x0, x21
	bl	_kzalloc
	str	x0, [x27, #8]
	cbz	x0, LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x3, x0
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	bl	_qed_read_str_from_buf
	ldr	x8, [x19, #24]
	cmp	x24, x8
	b.ge	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x21, [x19, #32]
	add	x24, x24, #1
	add	x23, x23, #16
	b	LBB0_14
LBB0_17:
Lloh10:
	adrp	x8, _DBG_STATUS_INVALID_TRACE_SIGNATURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DBG_STATUS_INVALID_TRACE_SIGNATURE@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	sub	x8, x24, #1
	cmp	x24, #0
	csel	x8, xzr, x8, eq
	str	x8, [x19, #8]
LBB0_19:
Lloh12:
	adrp	x8, _DBG_STATUS_VIRT_MEM_ALLOC_FAILED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DBG_STATUS_VIRT_MEM_ALLOC_FAILED@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	mov	w8, #1
	str	w8, [x19]
Lloh14:
	adrp	x8, _DBG_STATUS_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DBG_STATUS_OK@GOTPAGEOFF]
	b	LBB0_20
LBB0_22:
	sub	x8, x24, #2
	cmp	x24, #1
	csel	x8, xzr, x8, eq
	str	x8, [x19, #24]
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NVM_MAGIC_VALUE,8,3            ; @NVM_MAGIC_VALUE
	.comm	_DBG_STATUS_INVALID_TRACE_SIGNATURE,4,2 ; @DBG_STATUS_INVALID_TRACE_SIGNATURE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DBG_STATUS_VIRT_MEM_ALLOC_FAILED,4,2 ; @DBG_STATUS_VIRT_MEM_ALLOC_FAILED
	.comm	_MCP_TRACE_MAX_MODULE_LEN,8,3   ; @MCP_TRACE_MAX_MODULE_LEN
	.comm	_MCP_TRACE_FORMAT_LEN_MASK,8,3  ; @MCP_TRACE_FORMAT_LEN_MASK
	.comm	_MCP_TRACE_FORMAT_LEN_SHIFT,8,3 ; @MCP_TRACE_FORMAT_LEN_SHIFT
	.comm	_DBG_STATUS_OK,4,2              ; @DBG_STATUS_OK
	.no_dead_strip	_qed_mcp_trace_alloc_meta_data
.subsections_via_symbols
