	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etm_perf_del_symlink_sink      ## -- Begin function etm_perf_del_symlink_sink
	.p2align	4, 0x90
_etm_perf_del_symlink_sink:             ## @etm_perf_del_symlink_sink
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	_CORESIGHT_DEV_TYPE_SINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
	movq	_CORESIGHT_DEV_TYPE_LINKSINK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%al
	testb	%al, %cl
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	_etm_pmu@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rdx
	callq	_sysfs_remove_file_from_group
	movq	$0, 8(%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_etm_pmu,8,3                    ## @etm_pmu
	.comm	_CORESIGHT_DEV_TYPE_SINK,8,3    ## @CORESIGHT_DEV_TYPE_SINK
	.comm	_CORESIGHT_DEV_TYPE_LINKSINK,8,3 ## @CORESIGHT_DEV_TYPE_LINKSINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sinks"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etm_perf_del_symlink_sink      ; -- Begin function etm_perf_del_symlink_sink
	.p2align	2
_etm_perf_del_symlink_sink:             ; @etm_perf_del_symlink_sink
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x8, x1, [x0]
Lloh0:
	adrp	x9, _CORESIGHT_DEV_TYPE_SINK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CORESIGHT_DEV_TYPE_SINK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _CORESIGHT_DEV_TYPE_LINKSINK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CORESIGHT_DEV_TYPE_LINKSINK@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	ccmp	x1, #0, #4, eq
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x8, _etm_pmu@GOTPAGE
Lloh7:
	ldr	x8, [x8, _etm_pmu@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_sysfs_remove_file_from_group
	str	xzr, [x19, #8]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_etm_pmu,8,3                    ; @etm_pmu
	.comm	_CORESIGHT_DEV_TYPE_SINK,8,3    ; @CORESIGHT_DEV_TYPE_SINK
	.comm	_CORESIGHT_DEV_TYPE_LINKSINK,8,3 ; @CORESIGHT_DEV_TYPE_LINKSINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sinks"

.subsections_via_symbols
