	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fastrpc_invoke_send
_fastrpc_invoke_send:                   ## @fastrpc_invoke_send
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	64(%rsi), %rax
	movq	8(%rax), %rsi
	movq	16(%rax), %r15
	movq	%rsi, 48(%rbx)
	movq	_current@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rsi), %esi
	movl	%esi, 56(%rbx)
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	$0, 48(%rbx)
LBB0_2:
	leaq	24(%rbx), %r14
	movl	(%rax), %eax
	orl	(%rbx), %eax
	movl	%eax, 24(%rbx)
	movl	%ecx, 40(%rbx)
	movl	16(%rbx), %eax
	movl	%eax, 36(%rbx)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movl	%eax, 32(%rbx)
	movl	4(%rbx), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_roundup
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	callq	_fastrpc_context_get
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	$40, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rpmsg_send                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_fastrpc_invoke_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fastrpc_invoke_send
_fastrpc_invoke_send:                   ; @fastrpc_invoke_send
	.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	x20, x1
	ldr	x8, [x1, #64]
	add	x19, x1, #24
	ldp	x9, x21, [x8, #8]
	str	x9, [x1, #48]
Lloh0:
	adrp	x9, _current@GOTPAGE
Lloh1:
	ldr	x9, [x9, _current@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w9, [x9]
	str	w9, [x1, #56]
	cbz	x2, LBB0_2
; %bb.1:
	str	xzr, [x20, #48]
LBB0_2:
	ldr	w9, [x20]
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x20, #24]
	ldr	w8, [x20, #16]
	stp	w8, w3, [x20, #36]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x8]
LBB0_4:
	str	w8, [x20, #32]
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_roundup
	str	w0, [x20, #28]
	mov	x0, x20
	bl	_fastrpc_context_get
	ldr	x8, [x21]
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #40
	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
	b	_rpmsg_send
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_fastrpc_invoke_send
.subsections_via_symbols
