	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rave_sp_receive_reply
_rave_sp_receive_reply:                 ## @rave_sp_receive_reply
	.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, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	callq	_mutex_lock
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	addq	$-2, %r14
	movb	(%rbx), %al
	cmpb	(%r13), %al
	jne	LBB0_5
## %bb.2:
	movb	1(%rbx), %al
	cmpb	1(%r13), %al
	jne	LBB0_5
## %bb.3:
	movq	8(%rbx), %rdx
	cmpq	%rdx, %r14
	jae	LBB0_4
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movzbl	(%rbx), %edx
	movzbl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movzbl	1(%rbx), %edx
	movzbl	1(%r13), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movzbl	8(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rcx
	callq	_dev_dbg
LBB0_6:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_4:
	movl	20(%rbx), %edi
	addq	$2, %r13
	movq	%r13, %rsi
	callq	_memcpy
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_complete
	movq	$0, 8(%r15)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ignoring incorrect reply\n"

L_.str.1:                               ## @.str.1
	.asciz	"Code:   expected = 0x%08x received = 0x%08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"ACK ID: expected = 0x%08x received = 0x%08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Length: expected = %zu received = %zu\n"

	.no_dead_strip	_rave_sp_receive_reply
.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_reply
_rave_sp_receive_reply:                 ; @rave_sp_receive_reply
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #16]
	bl	_mutex_lock
	ldr	x23, [x19, #8]
	cbz	x23, LBB0_5
; %bb.1:
	sub	x21, x21, #2
	ldrb	w8, [x23]
	ldrb	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	ldrb	w8, [x23, #1]
	ldrb	w9, [x22, #1]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	x2, [x23, #8]
	cmp	x21, x2
	b.hs	LBB0_6
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldrb	w2, [x23]
	ldrb	w3, [x22]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldrb	w2, [x23, #1]
	ldrb	w3, [x22, #1]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldrb	w2, [x23, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_dev_dbg
LBB0_5:
	mov	x0, x19
	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
	b	_mutex_unlock
LBB0_6:
	ldr	w0, [x23, #20]
	add	x1, x22, #2
	bl	_memcpy
	add	x0, x23, #16
	bl	_complete
	str	xzr, [x19, #8]
	b	LBB0_5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ignoring incorrect reply\n"

l_.str.1:                               ; @.str.1
	.asciz	"Code:   expected = 0x%08x received = 0x%08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"ACK ID: expected = 0x%08x received = 0x%08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Length: expected = %zu received = %zu\n"

	.no_dead_strip	_rave_sp_receive_reply
.subsections_via_symbols
