	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_spad_cmd_recv
_perf_spad_cmd_recv:                    ## @perf_spad_cmd_recv
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movl	24(%rdi), %edi
	callq	_PERF_SPAD_NOTIFY
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ntb_db_clear
	movl	$0, (%r13)
	cmpl	$0, (%r12)
	jle	LBB0_6
## %bb.1:
	xorl	%eax, %eax
	movq	_PERF_CMD_INVAL@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	incl	%eax
	movl	%eax, (%r13)
	cmpl	(%r12), %eax
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rbx
	shlq	$2, %rbx
	addq	16(%r12), %rbx
	movq	%rbx, %rdi
	callq	_perf_link_is_up
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %r14
	movl	(%rbx), %edi
	callq	_PERF_SPAD_CMD
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ntb_spad_read
	cmpq	(%r15), %rax
	je	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	8(%r12), %r14
	movl	(%rbx), %edi
	callq	_PERF_SPAD_LDATA
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ntb_spad_read
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, (%r13)
	movq	8(%r12), %r14
	movl	(%rbx), %edi
	callq	_PERF_SPAD_HDATA
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ntb_spad_read
	movq	8(%r12), %r14
	movl	(%rbx), %edi
	callq	_PERF_SPAD_CMD
	movq	(%r15), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ntb_spad_write
	movq	8(%r12), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_CMD_INVAL,8,3             ## @PERF_CMD_INVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMD recv: %d 0x%llx\n"

	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_perf_spad_cmd_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_spad_cmd_recv
_perf_spad_cmd_recv:                    ; @perf_spad_cmd_recv
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x0, #24]
	bl	_PERF_SPAD_NOTIFY
	mov	x1, x0
	mov	x0, x23
	bl	_ntb_db_clear
	str	wzr, [x22]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w8, #0
Lloh0:
	adrp	x25, _PERF_CMD_INVAL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PERF_CMD_INVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #16]
	add	x23, x9, w8, sxtw #2
	mov	x0, x23
	bl	_perf_link_is_up
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x24, [x21, #8]
	ldr	w0, [x23]
	bl	_PERF_SPAD_CMD
	mov	x1, x0
	mov	x0, x24
	bl	_ntb_spad_read
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.5:
	str	w0, [x20]
	ldr	x22, [x21, #8]
	ldr	w0, [x23]
	bl	_PERF_SPAD_LDATA
	mov	x1, x0
	mov	x0, x22
	bl	_ntb_spad_read
	str	w0, [x19]
	ldr	x22, [x21, #8]
	ldr	w0, [x23]
	bl	_PERF_SPAD_HDATA
	mov	x1, x0
	mov	x0, x22
	bl	_ntb_spad_read
	ldr	x22, [x21, #8]
	ldr	w0, [x23]
	bl	_PERF_SPAD_CMD
	mov	x1, x0
	ldr	x2, [x25]
	mov	x0, x22
	bl	_ntb_spad_write
	ldr	x0, [x21, #8]
	ldr	w2, [x20]
	ldr	w3, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _ENODATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_CMD_INVAL,8,3             ; @PERF_CMD_INVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMD recv: %d 0x%llx\n"

	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_perf_spad_cmd_recv
.subsections_via_symbols
