	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ds_release_pebs_noirq          ## -- Begin function ds_release_pebs_noirq
	.p2align	4, 0x90
_ds_release_pebs_noirq:                 ## @ds_release_pebs_noirq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rax), %r15
	callq	_local_irq_save
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	movq	_current@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_ds_suspend_pebs_noirq
	movq	%r14, %rdi
	callq	_ds_free_pebs
	xorl	%ebx, %ebx
LBB0_6:
	callq	_local_irq_restore
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r14), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_smp_processor_id
	cmpq	%rax, %r15
	je	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_current,8,3                    ## @current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ds_release_pebs_noirq          ; -- Begin function ds_release_pebs_noirq
	.p2align	2
_ds_release_pebs_noirq:                 ; @ds_release_pebs_noirq
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x21, [x8, #8]
	bl	_local_irq_save
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	cbz	x21, LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _current@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_ds_suspend_pebs_noirq
	mov	x0, x19
	bl	_ds_free_pebs
	mov	w20, #0
LBB0_4:
	bl	_local_irq_restore
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	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
LBB0_7:
	ldr	x8, [x19]
	ldr	x21, [x8]
	bl	_smp_processor_id
	cmp	x21, x0
	b.eq	LBB0_3
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_current,8,3                    ; @current
.subsections_via_symbols
