	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etb_enable_sysfs
_etb_enable_sysfs:                      ## @etb_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	leaq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %rax
	movq	_CS_MODE_PERF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	_CS_MODE_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	callq	_etb_enable_hw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	_CS_MODE_SYSFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_5:
	movl	(%r14), %edi
	callq	_atomic_inc
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CS_MODE_PERF,8,3               ## @CS_MODE_PERF
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CS_MODE_DISABLED,8,3           ## @CS_MODE_DISABLED
	.comm	_CS_MODE_SYSFS,8,3              ## @CS_MODE_SYSFS
	.no_dead_strip	_etb_enable_sysfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etb_enable_sysfs
_etb_enable_sysfs:                      ; @etb_enable_sysfs
	.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	x20, x0
	ldr	w0, [x0, #4]
	bl	_dev_get_drvdata
	mov	x21, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _CS_MODE_PERF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CS_MODE_PERF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_2:
Lloh6:
	adrp	x9, _CS_MODE_DISABLED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CS_MODE_DISABLED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_etb_enable_hw
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _CS_MODE_SYSFS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CS_MODE_SYSFS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x21]
LBB0_5:
	ldr	w0, [x20]
	bl	_atomic_inc
	mov	w22, #0
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CS_MODE_PERF,8,3               ; @CS_MODE_PERF
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CS_MODE_DISABLED,8,3           ; @CS_MODE_DISABLED
	.comm	_CS_MODE_SYSFS,8,3              ; @CS_MODE_SYSFS
	.no_dead_strip	_etb_enable_sysfs
.subsections_via_symbols
