	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etm_enable_sysfs
_etm_enable_sysfs:                      ## @etm_enable_sysfs
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	leaq	4(%rax), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movl	8(%r12), %edi
	callq	_cpu_online
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r12, -56(%rbp)
	movl	8(%r12), %edi
	movq	_etm_enable_hw_smp_call@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movl	$1, %ecx
	callq	_smp_call_function_single
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	-64(%rbp), %ebx
LBB0_3:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	callq	_spin_unlock
	jmp	LBB0_9
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_spin_unlock
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.6:
	negl	%ebx
	jmp	LBB0_9
LBB0_7:
	movl	$1, (%r12)
	movq	%r15, %rdi
	callq	_spin_unlock
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_etm_enable_hw_smp_call,4,2     ## @etm_enable_hw_smp_call
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ETM tracing enabled\n"

	.no_dead_strip	_etm_enable_sysfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etm_enable_sysfs
_etm_enable_sysfs:                      ; @etm_enable_sysfs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x21, x0
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock
	ldr	w0, [x21, #8]
	bl	_cpu_online
	cbz	x0, LBB0_3
; %bb.1:
	str	x21, [sp, #16]
	ldr	w0, [x21, #8]
Lloh0:
	adrp	x8, _etm_enable_hw_smp_call@GOTPAGE
Lloh1:
	ldr	x8, [x8, _etm_enable_hw_smp_call@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w23, #1
	add	x2, sp, #8
	mov	w3, #1
	bl	_smp_call_function_single
	ldr	w8, [sp, #8]
	cmp	w0, #0
	csel	w22, w8, w0, eq
	cbz	w22, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_spin_unlock
	b	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_spin_unlock
	cbz	w21, LBB0_6
; %bb.4:
	neg	w22, w21
	b	LBB0_7
LBB0_5:
	str	w23, [x21]
	mov	x0, x20
	bl	_spin_unlock
LBB0_6:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w22, #0
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_etm_enable_hw_smp_call,4,2     ; @etm_enable_hw_smp_call
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ETM tracing enabled\n"

	.no_dead_strip	_etm_enable_sysfs
.subsections_via_symbols
