	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arpc_sync
_arpc_sync:                             ## @arpc_sync
	.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	%r9d, %ebx
	movq	%r8, %r13
	movq	%rdx, %rax
	movl	%esi, %edx
	movq	%rdi, %r14
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movl	$0, (%r13)
LBB0_2:
	movq	%rax, %rdi
	movq	%rcx, %rsi
	callq	_arpc_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_arpc_add
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_arpc_send
	movl	%ebx, %edi
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_12:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_arpc_del
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	callq	_arpc_free
	testl	%ebx, %ebx
	jns	LBB0_15
## %bb.13:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_15
## %bb.14:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_15
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rbx
	addq	$8, %rbx
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_interruptible_timeout
	testl	%eax, %eax
	jle	LBB0_6
## %bb.8:
	movq	(%r12), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	testq	%r13, %r13
	je	LBB0_12
## %bb.11:
	movl	%eax, (%r13)
	jmp	LBB0_12
LBB0_6:
	movl	%eax, %ebx
	jne	LBB0_12
## %bb.7:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to execute ARPC: %d\n"

	.no_dead_strip	_arpc_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arpc_sync
_arpc_sync:                             ; @arpc_sync
	.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	x24, x5
	mov	x22, x4
	mov	x8, x2
	mov	x2, x1
	mov	x19, x0
	cbz	x4, LBB0_2
; %bb.1:
	str	wzr, [x22]
LBB0_2:
	mov	x0, x8
	mov	x1, x3
	bl	_arpc_alloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	bl	_arpc_add
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_arpc_send
	mov	x23, x0
	cbz	w0, LBB0_9
LBB0_4:
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	bl	_arpc_del
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_arpc_free
	tbz	w23, #31, LBB0_8
; %bb.5:
Lloh0:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w23, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_err
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_8:
	mov	x0, x23
	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_9:
	add	x23, x20, #8
	mov	x0, x24
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x23
	bl	_wait_for_completion_interruptible_timeout
	cmp	w0, #0
	b.le	LBB0_13
; %bb.10:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cbz	w8, LBB0_15
; %bb.11:
Lloh8:
	adrp	x9, _EREMOTEIO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EREMOTEIO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	neg	w23, w9
	cbz	x22, LBB0_4
; %bb.12:
	str	w8, [x22]
	b	LBB0_4
LBB0_13:
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.14:
Lloh11:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_4
LBB0_15:
	mov	w23, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to execute ARPC: %d\n"

	.no_dead_strip	_arpc_sync
.subsections_via_symbols
