	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rave_sp_receive_buf
_rave_sp_receive_buf:                   ## @rave_sp_receive_buf
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_dev_get_drvdata
	testq	%r12, %r12
	jle	LBB0_18
## %bb.1:
	movq	%rax, %r14
	leaq	(%rbx,%r12), %rax
	movl	(%r14), %edx
	movl	$1, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, (%r14)
	movl	%esi, %edx
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	incq	%r13
	cmpq	%rax, %rbx
	jae	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %ecx
	cmpl	$131, %edx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %edx
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %edx
	jne	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$129, %edx
	movl	$131, %esi
	cmpb	$-128, %cl
	je	LBB0_16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$130, %esi
	cmpb	$-123, %cl
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$-128, %cl
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$-124, %cl
	je	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	16(%r14), %rdx
	cmpq	$8, %rdx
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rsi
	leal	1(%rdx), %edi
	movl	%edi, 16(%r14)
	movb	%cl, (%rsi,%rdx)
	movl	$131, %esi
	jmp	LBB0_16
LBB0_18:
	movq	%r12, %r13
	jmp	LBB0_19
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str(%rip), %rsi
LBB0_12:
	movq	%r15, %rdi
	callq	_dev_warn
	jmp	LBB0_10
LBB0_9:
	movq	8(%r14), %rsi
	movl	16(%r14), %edx
	movq	%r14, %rdi
	callq	_rave_sp_receive_frame
LBB0_10:
	movl	$129, (%r14)
	movl	$0, 16(%r14)
LBB0_19:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad frame: STX before ETX\n"

L_.str.1:                               ## @.str.1
	.asciz	"Bad frame: Too long\n"

	.no_dead_strip	_rave_sp_receive_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rave_sp_receive_buf
_rave_sp_receive_buf:                   ; @rave_sp_receive_buf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_dev_get_drvdata
	cmp	x20, #1
	b.lt	LBB0_21
; %bb.1:
	mov	x19, x0
	mov	x23, #0
	add	x8, x22, x20
	ldr	w9, [x0]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #129
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	add	x10, x22, x23
	cmp	x10, x8
	b.hs	LBB0_21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x22, x23]
	cmp	w9, #131
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #130
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #129
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w10, #128
	b.ne	LBB0_2
	b	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w10, #133
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w10, #128
	b.eq	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w10, #132
	b.eq	LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x9, [x19, #16]
	cmp	w9, #8
	b.eq	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x19, #8]
	add	w12, w9, #1
	str	w12, [x19, #16]
	strb	w10, [x11, x9]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #131
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #130
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x19]
	b	LBB0_3
LBB0_16:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_18:
	mov	x0, x21
	bl	_dev_warn
	b	LBB0_20
LBB0_19:
	ldr	x1, [x19, #8]
	ldr	w2, [x19, #16]
	mov	x0, x19
	bl	_rave_sp_receive_frame
LBB0_20:
	mov	w8, #129
	str	w8, [x19]
	str	wzr, [x19, #16]
	add	x20, x23, #1
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad frame: STX before ETX\n"

l_.str.1:                               ; @.str.1
	.asciz	"Bad frame: Too long\n"

	.no_dead_strip	_rave_sp_receive_buf
.subsections_via_symbols
