	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etm_get_trace_id               ## -- Begin function etm_get_trace_id
	.p2align	4, 0x90
_etm_get_trace_id:                      ## @etm_get_trace_id
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	addq	$12, %rdi
	callq	_local_read
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	8(%rbx), %edi
	callq	_CS_UNLOCK
	movq	_ETMTRACEIDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_etm_readl
	movl	%eax, %r15d
	movq	_ETM_TRACEID_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movl	8(%rbx), %edi
	callq	_CS_LOCK
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_pm_runtime_put
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %r15d
	jmp	LBB0_5
LBB0_3:
	movl	(%rbx), %r15d
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETMTRACEIDR,4,2                ## @ETMTRACEIDR
	.comm	_ETM_TRACEID_MASK,4,2           ## @ETM_TRACEID_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etm_get_trace_id               ; -- Begin function etm_get_trace_id
	.p2align	2
_etm_get_trace_id:                      ; @etm_get_trace_id
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
	add	x0, x0, #12
	bl	_local_read
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_pm_runtime_get_sync
	add	x22, x20, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w0, [x20, #8]
	bl	_CS_UNLOCK
Lloh0:
	adrp	x8, _ETMTRACEIDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETMTRACEIDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_etm_readl
Lloh3:
	adrp	x8, _ETM_TRACEID_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETM_TRACEID_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w21, w8, w0
	ldr	w0, [x20, #8]
	bl	_CS_LOCK
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_pm_runtime_put
	b	LBB0_5
LBB0_3:
	mov	w21, #-1
	b	LBB0_5
LBB0_4:
	ldr	w21, [x20]
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETMTRACEIDR,4,2                ; @ETMTRACEIDR
	.comm	_ETM_TRACEID_MASK,4,2           ; @ETM_TRACEID_MASK
.subsections_via_symbols
