	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmc_etb_dump_hw
_tmc_etb_dump_hw:                       ## @tmc_etb_dump_hw
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_TMC_STS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r15), %rdi
	callq	_readl_relaxed
	movl	%eax, %r14d
	movq	_TMC_STS_FULL@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	(%r15), %rbx
	movq	$0, 8(%r15)
	movq	_TMC_RRD@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	16(%r15), %rdi
	callq	_readl_relaxed
	movl	%eax, -44(%rbp)
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	addq	$4, 8(%r15)
	addq	$4, %rbx
	movq	(%r13), %rdi
	addq	16(%r15), %rdi
	callq	_readl_relaxed
	movl	%eax, -44(%rbp)
	cmpl	$-1, %eax
	jne	LBB0_2
LBB0_3:
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rdi
	callq	_coresight_insert_barrier_packet
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TMC_STS,8,3                    ## @TMC_STS
	.comm	_TMC_STS_FULL,4,2               ## @TMC_STS_FULL
	.comm	_TMC_RRD,8,3                    ## @TMC_RRD
	.no_dead_strip	_tmc_etb_dump_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmc_etb_dump_hw
_tmc_etb_dump_hw:                       ; @tmc_etb_dump_hw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _TMC_STS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TMC_STS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh3:
	adrp	x8, _TMC_STS_FULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TMC_STS_FULL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w21, w8, w0
	ldr	x20, [x19]
	str	xzr, [x19, #8]
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x22, _TMC_RRD@GOTPAGE
Lloh7:
	ldr	x22, [x22, _TMC_RRD@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_readl_relaxed
	str	w0, [sp, #12]
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
	add	x20, x20, #4
	ldp	x8, x9, [x19, #8]
	add	x8, x8, #4
	str	x8, [x19, #8]
	ldr	x8, [x22]
	add	x0, x8, x9
	b	LBB0_1
LBB0_3:
	cbz	w21, LBB0_5
; %bb.4:
	ldr	x0, [x19]
	bl	_coresight_insert_barrier_packet
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TMC_STS,8,3                    ; @TMC_STS
	.comm	_TMC_STS_FULL,4,2               ; @TMC_STS_FULL
	.comm	_TMC_RRD,8,3                    ; @TMC_RRD
	.no_dead_strip	_tmc_etb_dump_hw
.subsections_via_symbols
