	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_disable_service
_perf_disable_service:                  ## @perf_disable_service
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_perf_msg_cmd_send@GOTPCREL(%rip), %rcx
	movl	12(%rdi), %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_ntb_msg_inbits
	movl	12(%r15), %edi
	movl	%eax, %esi
	callq	_ntb_msg_set_mask
	jmp	LBB0_3
LBB0_2:
	movl	16(%r15), %edi
	callq	_PERF_SPAD_NOTIFY
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ntb_db_set_mask
LBB0_3:
	movl	12(%r15), %edi
	callq	_ntb_clear_ctx
	cmpl	$0, 8(%r15)
	jle	LBB0_12
## %bb.4:
	xorl	%r12d, %r12d
	movq	_PERF_CMD_CLEAR@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rdi
	addq	%r12, %rdi
	movl	(%r14), %esi
	callq	_perf_cmd_exec
	incq	%rbx
	movslq	8(%r15), %rax
	addq	$8, %r12
	cmpq	%rax, %rbx
	jl	LBB0_5
## %bb.6:
	testl	%eax, %eax
	jle	LBB0_12
## %bb.7:
	movl	$4, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rdi
	addq	%r14, %rdi
	callq	_flush_work
	incq	%rbx
	movslq	8(%r15), %rax
	addq	$8, %r14
	cmpq	%rax, %rbx
	jl	LBB0_8
## %bb.9:
	testl	%eax, %eax
	jle	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	12(%r15), %r14d
	movl	(%rax,%rbx,8), %edi
	callq	_PERF_SPAD_CMD
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_ntb_spad_write
	incq	%rbx
	movslq	8(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	movl	12(%r15), %r14d
	movl	16(%r15), %edi
	callq	_PERF_SPAD_NOTIFY
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ntb_db_clear
	movl	12(%r15), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ntb_link_disable               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_perf_msg_cmd_send,8,3          ## @perf_msg_cmd_send
	.comm	_PERF_CMD_CLEAR,4,2             ## @PERF_CMD_CLEAR
	.no_dead_strip	_perf_disable_service
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_disable_service
_perf_disable_service:                  ; @perf_disable_service
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _perf_msg_cmd_send@GOTPAGE
Lloh1:
	ldr	x9, [x9, _perf_msg_cmd_send@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w20, [x0, #12]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ntb_msg_inbits
	mov	x1, x0
	ldr	w0, [x19, #12]
	bl	_ntb_msg_set_mask
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #16]
	bl	_PERF_SPAD_NOTIFY
	mov	x1, x0
	mov	x0, x20
	bl	_ntb_db_set_mask
LBB0_3:
	ldr	w0, [x19, #12]
	bl	_ntb_clear_ctx
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x20, #0
	mov	x21, #0
Lloh3:
	adrp	x22, _PERF_CMD_CLEAR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PERF_CMD_CLEAR@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x20
	ldr	w1, [x22]
	bl	_perf_cmd_exec
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	add	x20, x20, #8
	cmp	x21, x8
	b.lt	LBB0_5
; %bb.6:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x20, #0
	mov	w21, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x21
	bl	_flush_work
	add	x20, x20, #1
	ldrsw	x8, [x19, #8]
	add	x21, x21, #8
	cmp	x20, x8
	b.lt	LBB0_8
; %bb.9:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x21, #0
	mov	x22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w20, [x19, #12]
	ldr	w0, [x8, x21]
	bl	_PERF_SPAD_CMD
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_ntb_spad_write
	add	x22, x22, #1
	ldrsw	x8, [x19, #8]
	add	x21, x21, #8
	cmp	x22, x8
	b.lt	LBB0_11
LBB0_12:
	ldp	w20, w0, [x19, #12]
	bl	_PERF_SPAD_NOTIFY
	mov	x1, x0
	mov	x0, x20
	bl	_ntb_db_clear
	ldr	w0, [x19, #12]
	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
	b	_ntb_link_disable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_perf_msg_cmd_send,8,3          ; @perf_msg_cmd_send
	.comm	_PERF_CMD_CLEAR,4,2             ; @PERF_CMD_CLEAR
	.no_dead_strip	_perf_disable_service
.subsections_via_symbols
