	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fastrpc_rpmsg_callback
_fastrpc_rpmsg_callback:                ## @fastrpc_rpmsg_callback
	.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
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_dev_get_drvdata
	cmpl	$7, %ebx
	ja	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%rax, %r13
	movq	_FASTRPC_CTXID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	sarl	$4, %eax
	movslq	%eax, %rbx
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	%r13, %rdi
	addq	$4, %rdi
	movq	%rbx, %rsi
	callq	_idr_find
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r12, %r12
	je	LBB0_4
## %bb.5:
	movl	4(%r14), %eax
	movl	%eax, 8(%r12)
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_complete
	movq	%r12, %rdi
	callq	_schedule_work
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FASTRPC_CTXID_MASK,4,2         ## @FASTRPC_CTXID_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No context ID matches response\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_fastrpc_rpmsg_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fastrpc_rpmsg_callback
_fastrpc_rpmsg_callback:                ; @fastrpc_rpmsg_callback
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_dev_get_drvdata
	cmp	w22, #7
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x21, x0
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _FASTRPC_CTXID_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FASTRPC_CTXID_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w8, w9, w8
	sbfx	x22, x8, #4, #28
	bl	_spin_lock_irqsave
	add	x0, x21, #4
	mov	x1, x22
	bl	_idr_find
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	x22, LBB0_4
; %bb.3:
	ldr	w8, [x20, #4]
	str	w8, [x22, #8]
	add	x0, x22, #4
	bl	_complete
	mov	x0, x22
	bl	_schedule_work
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh7:
	adrp	x8, _ENOENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FASTRPC_CTXID_MASK,4,2         ; @FASTRPC_CTXID_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No context ID matches response\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_fastrpc_rpmsg_callback
.subsections_via_symbols
