	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fastrpc_internal_invoke
_fastrpc_internal_invoke:               ## @fastrpc_internal_invoke
	.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
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.5:
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%r12, %rdi
	movl	%ecx, %edx
	movq	%r8, %rcx
	callq	_fastrpc_context_alloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.18:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EPIPE@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$0, 8(%r14)
	je	LBB0_8
## %bb.7:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_fastrpc_get_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_8:
	xorl	%eax, %eax
	callq	_dma_wmb
	movq	(%r12), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	callq	_fastrpc_invoke_send
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	leaq	16(%r14), %rdi
	callq	_wait_for_completion_interruptible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.11:
	cmpq	$0, 8(%r14)
	je	LBB0_12
## %bb.13:
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_fastrpc_put_args
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_12:
	xorl	%ebx, %ebx
LBB0_14:
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_list_del
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%r14, %rdi
	callq	_fastrpc_context_put
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.16:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	jmp	LBB0_17
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EPIPE,4,2                      ## @EPIPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: Invoke Failed %d\n"

	.no_dead_strip	_fastrpc_internal_invoke
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fastrpc_internal_invoke
_fastrpc_internal_invoke:               ; @fastrpc_internal_invoke
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x23, x2
	mov	x21, x1
	mov	x0, x19
	mov	x2, x3
	mov	x3, x4
	bl	_fastrpc_context_alloc
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
	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
	b	_PTR_ERR
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _EPIPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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
LBB0_8:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x21
	mov	x1, x20
	bl	_fastrpc_get_args
	mov	x22, x0
	cbnz	w0, LBB0_16
LBB0_10:
	bl	_dma_wmb
	ldr	x0, [x19]
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	bl	_fastrpc_invoke_send
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.11:
	add	x0, x20, #16
	bl	_wait_for_completion_interruptible
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.12:
	ldr	w22, [x20]
	cbnz	w22, LBB0_16
; %bb.13:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_15
; %bb.14:
	bl	_dma_rmb
	mov	x0, x20
	mov	x1, x21
	bl	_fastrpc_put_args
	mov	x22, x0
	b	LBB0_16
LBB0_15:
	mov	w22, #0
LBB0_16:
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock
	add	x0, x20, #4
	bl	_list_del
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x20
	bl	_fastrpc_context_put
	cbz	w22, LBB0_7
; %bb.17:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_dbg
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EPIPE,4,2                      ; @EPIPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: Invoke Failed %d\n"

	.no_dead_strip	_fastrpc_internal_invoke
.subsections_via_symbols
