	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etm_perf_add_symlink_sink      ## -- Begin function etm_perf_add_symlink_sink
	.p2align	4, 0x90
_etm_perf_add_symlink_sink:             ## @etm_perf_add_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_etm_pmu@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	(%rdi), %rax
	movq	_CORESIGHT_DEV_TYPE_SINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_CORESIGHT_DEV_TYPE_LINKSINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	cmpq	$0, 8(%r15)
	je	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_etm_perf_up@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.8:
	leaq	16(%r15), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_dev_name
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_hashlen_string
	movl	%eax, %edi
	callq	_hashlen_hash
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_sysfs_attr_init
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_devm_kstrdup
	movl	%eax, 12(%r13)
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	movl	$292, 8(%r13)                   ## imm = 0x124
	movq	_etm_perf_sink_name_show@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r13)
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sysfs_add_file_to_group
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.11:
	movq	%r13, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_12:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.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
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_etm_perf_up,4,2                ## @etm_perf_up
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_etm_perf_sink_name_show,4,2    ## @etm_perf_sink_name_show
	.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_add_symlink_sink      ; -- Begin function etm_perf_add_symlink_sink
	.p2align	2
_etm_perf_add_symlink_sink:             ; @etm_perf_add_symlink_sink
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x0
	ldr	x8, [x22], #16
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, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh8:
	adrp	x8, _etm_perf_up@GOTPAGE
Lloh9:
	ldr	x8, [x8, _etm_perf_up@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.6:
Lloh11:
	adrp	x8, _etm_pmu@GOTPAGE
Lloh12:
	ldr	x8, [x8, _etm_pmu@GOTPAGEOFF]
Lloh13:
	ldr	x21, [x8]
Lloh14:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x22
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.7:
	mov	x20, x0
	mov	x0, x22
	bl	_dev_name
	mov	x25, x0
	mov	x0, #0
	mov	x1, x25
	bl	_hashlen_string
	bl	_hashlen_hash
	mov	x24, x0
	add	x23, x20, #8
	mov	x0, x23
	bl	_sysfs_attr_init
	ldr	w2, [x26]
	mov	x0, x22
	mov	x1, x25
	bl	_devm_kstrdup
	str	w0, [x20, #12]
	cbz	w0, LBB0_10
; %bb.8:
	mov	w8, #292
	str	w8, [x20, #8]
Lloh16:
	adrp	x8, _etm_perf_sink_name_show@GOTPAGE
Lloh17:
	ldr	x8, [x8, _etm_perf_sink_name_show@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	x24, [x20]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	bl	_sysfs_add_file_to_group
	cbnz	w0, LBB0_4
; %bb.9:
	str	x20, [x19, #8]
	b	LBB0_4
LBB0_10:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_11:
Lloh23:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.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
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_etm_perf_up,4,2                ; @etm_perf_up
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_etm_perf_sink_name_show,4,2    ; @etm_perf_sink_name_show
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sinks"

.subsections_via_symbols
