	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ds_suspend_bts_noirq           ## -- Begin function ds_suspend_bts_noirq
	.p2align	4, 0x90
_ds_suspend_bts_noirq:                  ## @ds_suspend_bts_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	$0, 8(%rdi)
	movq	(%rdi), %rax
	movq	8(%rax), %rbx
	movl	(%rax), %r14d
	callq	_local_irq_save
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.8:
	movq	_BTS_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	notq	%rsi
	andq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_update_task_debugctlmsr
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_3:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_smp_processor_id
	cmpl	%eax, %r14d
	jne	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	callq	_get_debugctlmsr
	movq	_BTS_CONTROL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	notq	%rdi
	andq	%rax, %rdi
	callq	_update_debugctlmsr
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	callq	_local_irq_restore
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_BTS_CONTROL,8,3                ## @BTS_CONTROL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ds_suspend_bts_noirq           ; -- Begin function ds_suspend_bts_noirq
	.p2align	2
_ds_suspend_bts_noirq:                  ; @ds_suspend_bts_noirq
	.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
	cbz	x0, LBB0_3
; %bb.1:
	str	xzr, [x0, #8]
	ldr	x8, [x0]
	ldr	x19, [x8, #8]
	ldr	w20, [x8]
	bl	_local_irq_save
	cbz	x19, LBB0_4
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _BTS_CONTROL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTS_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	bic	x1, x8, x9
	mov	x0, x19
	bl	_update_task_debugctlmsr
	b	LBB0_6
LBB0_3:
	mov	w19, #0
	b	LBB0_9
LBB0_4:
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	bl	_smp_processor_id
	cmp	w20, w0
	b.ne	LBB0_7
; %bb.5:
	bl	_get_debugctlmsr
Lloh6:
	adrp	x8, _BTS_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTS_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	bic	x0, x0, x8
	bl	_update_debugctlmsr
LBB0_6:
	mov	w19, #0
	b	LBB0_8
LBB0_7:
	neg	w19, w19
LBB0_8:
	bl	_local_irq_restore
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_BTS_CONTROL,8,3                ; @BTS_CONTROL
.subsections_via_symbols
