	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_service_work
_perf_service_work:                     ## @perf_service_work
	.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
	callq	_to_peer_service
	movq	%rax, %r14
	movq	_PERF_CMD_SSIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rax, %rbx
	addq	$8, %rbx
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %esi
	movl	16(%r14), %edx
	movq	%r14, %rdi
	callq	_perf_cmd_send
LBB0_2:
	movq	_PERF_CMD_RSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_perf_setup_inbuf
LBB0_4:
	movq	_PERF_CMD_SXLAT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r15), %esi
	movl	12(%r14), %edx
	movq	%r14, %rdi
	callq	_perf_cmd_send
LBB0_6:
	movq	_PERF_CMD_RXLAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_perf_setup_outbuf
LBB0_8:
	movq	_PERF_CMD_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	_PERF_STS_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	(%r14), %rsi
	addq	$16, %rsi
	xorl	%edi, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	(%r14), %rax
	cmpq	8(%rax), %r14
	jne	LBB0_12
## %bb.11:
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	(%r14), %rdi
	callq	_perf_terminate_test
LBB0_12:
	movq	%r14, %rdi
	callq	_perf_free_outbuf
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_perf_free_inbuf                ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_CMD_SSIZE,4,2             ## @PERF_CMD_SSIZE
	.comm	_PERF_CMD_RSIZE,4,2             ## @PERF_CMD_RSIZE
	.comm	_PERF_CMD_SXLAT,4,2             ## @PERF_CMD_SXLAT
	.comm	_PERF_CMD_RXLAT,4,2             ## @PERF_CMD_RXLAT
	.comm	_PERF_CMD_CLEAR,4,2             ## @PERF_CMD_CLEAR
	.comm	_PERF_STS_DONE,4,2              ## @PERF_STS_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Freeing while test on-fly\n"

	.no_dead_strip	_perf_service_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_service_work
_perf_service_work:                     ; @perf_service_work
	.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
	bl	_to_peer_service
	mov	x19, x0
Lloh0:
	adrp	x21, _PERF_CMD_SSIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PERF_CMD_SSIZE@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x20, x19, #8
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x21]
	ldr	w2, [x19, #16]
	mov	x0, x19
	bl	_perf_cmd_send
LBB0_2:
Lloh2:
	adrp	x8, _PERF_CMD_RSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PERF_CMD_RSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_perf_setup_inbuf
LBB0_4:
Lloh5:
	adrp	x21, _PERF_CMD_SXLAT@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PERF_CMD_SXLAT@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x21]
	ldr	w2, [x19, #12]
	mov	x0, x19
	bl	_perf_cmd_send
LBB0_6:
Lloh7:
	adrp	x8, _PERF_CMD_RXLAT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PERF_CMD_RXLAT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_perf_setup_outbuf
LBB0_8:
Lloh10:
	adrp	x8, _PERF_CMD_CLEAR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PERF_CMD_CLEAR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_13
; %bb.9:
Lloh13:
	adrp	x8, _PERF_STS_DONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PERF_STS_DONE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	ldr	x8, [x19]
	add	x1, x8, #16
	mov	w0, #0
	bl	_test_bit
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	cmp	x19, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	x0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	x0, [x19]
	bl	_perf_terminate_test
LBB0_12:
	mov	x0, x19
	bl	_perf_free_outbuf
	mov	x0, x19
	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	_perf_free_inbuf
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_CMD_SSIZE,4,2             ; @PERF_CMD_SSIZE
	.comm	_PERF_CMD_RSIZE,4,2             ; @PERF_CMD_RSIZE
	.comm	_PERF_CMD_SXLAT,4,2             ; @PERF_CMD_SXLAT
	.comm	_PERF_CMD_RXLAT,4,2             ; @PERF_CMD_RXLAT
	.comm	_PERF_CMD_CLEAR,4,2             ; @PERF_CMD_CLEAR
	.comm	_PERF_STS_DONE,4,2              ; @PERF_STS_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Freeing while test on-fly\n"

	.no_dead_strip	_perf_service_work
.subsections_via_symbols
