	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_perf_etr_buf_cpu_wide
_get_perf_etr_buf_cpu_wide:             ## @get_perf_etr_buf_cpu_wide
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edi
	callq	_task_pid_nr
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_mutex_lock
	leaq	4(%rbx), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_idr_find
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movq	%r12, %rdi
	callq	_refcount_inc
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_8:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movq	%r15, %rcx
	movl	%r13d, %r8d
	callq	_alloc_etr_buf
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_idr_alloc
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_tmc_free_etr_buf
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_idr_find
	testq	%rax, %rax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_2
## %bb.5:
	movq	%rax, %r12
	jmp	LBB0_6
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_8
## %bb.9:
	movq	%r12, %rdi
	callq	_tmc_free_etr_buf
	movl	%r13d, %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_get_perf_etr_buf_cpu_wide
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_perf_etr_buf_cpu_wide
_get_perf_etr_buf_cpu_wide:             ; @get_perf_etr_buf_cpu_wide
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_task_pid_nr
	mov	x24, x0
	mov	x0, x19
	bl	_mutex_lock
	add	x25, x19, #4
	mov	x0, x25
	mov	x1, x24
	bl	_idr_find
	mov	x26, x0
	cbz	x0, LBB0_3
LBB0_1:
	mov	x0, x26
	bl	_refcount_inc
	mov	x0, x19
	bl	_mutex_unlock
LBB0_2:
	mov	x0, x26
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
	add	x27, x24, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_alloc_etr_buf
	mov	x26, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	mov	x0, x25
	mov	x1, x26
	mov	x2, x24
	mov	x3, x27
	bl	_idr_alloc
	mov	x28, x0
	mov	x0, x19
	bl	_mutex_unlock
Lloh3:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w28, w8
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_tmc_free_etr_buf
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x25
	mov	x1, x24
	bl	_idr_find
	cbz	x0, LBB0_4
; %bb.7:
	mov	x26, x0
	b	LBB0_1
LBB0_8:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w28, w8
	b.ne	LBB0_2
; %bb.9:
	mov	x0, x26
	bl	_tmc_free_etr_buf
	mov	x0, x28
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_get_perf_etr_buf_cpu_wide
.subsections_via_symbols
