	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_cmd_recv
_perf_cmd_recv:                         ## @perf_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rsi
	leaq	-12(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	callq	*(%rdi)
	testl	%eax, %eax
	je	LBB0_1
## %bb.7:
	movl	%eax, %ecx
	movq	_ENODATA@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	movl	(%rdx), %edx
	addl	%ecx, %edx
	cmovnel	%ecx, %eax
	jmp	LBB0_8
LBB0_1:
	movq	16(%rbx), %rax
	movslq	-16(%rbp), %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rdi
	movl	-12(%rbp), %edx
	cmpl	$128, %edx
	je	LBB0_5
## %bb.2:
	cmpl	$129, %edx
	jne	LBB0_6
## %bb.3:
	movq	-24(%rbp), %rdx
	movq	%rdx, 8(%rax,%rcx)
	movq	_PERF_CMD_RSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	-24(%rbp), %rax
	movq	%rax, (%rdi)
	movq	_PERF_CMD_RXLAT@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	callq	_perf_cmd_exec
	jmp	LBB0_8
LBB0_6:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_CMD_RSIZE,4,2             ## @PERF_CMD_RSIZE
	.comm	_PERF_CMD_RXLAT,4,2             ## @PERF_CMD_RXLAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Recv invalid command\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_perf_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_cmd_recv
_perf_cmd_recv:                         ; @perf_cmd_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x3, sp
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENODATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	csel	w0, wzr, w0, eq
	b	LBB0_8
LBB0_2:
	ldr	x8, [x19, #16]
	ldp	w10, w9, [sp, #8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x0, x8, x9, lsl #4
	cmp	w10, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w10, #129
	b.ne	LBB0_7
; %bb.4:
	ldr	x10, [sp]
	add	x8, x8, x9, lsl #4
	str	x10, [x8, #8]
Lloh3:
	adrp	x8, _PERF_CMD_RSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PERF_CMD_RSIZE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	ldr	x8, [sp]
	str	x8, [x0]
Lloh5:
	adrp	x8, _PERF_CMD_RXLAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PERF_CMD_RXLAT@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	bl	_perf_cmd_exec
	b	LBB0_8
LBB0_7:
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_CMD_RSIZE,4,2             ; @PERF_CMD_RSIZE
	.comm	_PERF_CMD_RXLAT,4,2             ; @PERF_CMD_RXLAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Recv invalid command\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_perf_cmd_recv
.subsections_via_symbols
