	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_recv                       ## -- Begin function rpc_recv
	.p2align	4, 0x90
_rpc_recv:                              ## @rpc_recv
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	leaq	-76(%rbp), %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmovneq	%rdx, %r15
	movq	_RPC_RECV_FLAG_RES@GOTPCREL(%rip), %rax
	movq	_RPC_RECV_FLAG_CTRL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rax), %ebx
	movq	_RPC_RECV_FLAG_LEN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ecx, %r12d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	andl	%ecx, %ebx
	movq	_RPC_RECV_FLAG_BULK@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	andl	%ecx, %eax
	xorl	%edi, %edi
	orl	%ebx, %eax
	setne	%dil
	callq	_vcos_assert
	movq	_RPC_RECV_FLAG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	sete	%al
	movl	(%r14), %ecx
	andl	%r12d, %ecx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_vcos_assert
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_merge_flush
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_get_queue
	movl	%eax, %edi
	callq	_vchiu_queue_pop
	movq	%rax, %r14
	movq	8(%rax), %r13
	xorl	%eax, %eax
	movq	_RPC_RECV_FLAG_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	andl	%r12d, %ecx
	setne	%al
	shll	$2, %eax
	xorl	%ecx, %ecx
	movq	_RPC_RECV_FLAG_RES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	andl	%r12d, %edx
	setne	%cl
	leal	(%rax,%rcx,4), %eax
	xorl	%edi, %edi
	cmpl	%eax, (%r14)
	setge	%dil
	callq	_vcos_assert
	testl	%r12d, (%r15)
	movq	%rbx, %rcx
	je	LBB0_5
## %bb.6:
	movl	(%r13), %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, (%r15)
	addq	$16, %r13
	testl	%r12d, (%rcx)
	je	LBB0_8
LBB0_9:
	movl	(%r13), %ebx
	addq	$16, %r13
	jmp	LBB0_10
LBB0_1:
	cmpl	$0, (%r15)
	je	LBB0_2
## %bb.3:
	movq	%r13, %rdi
	callq	_merge_flush
	xorl	%ebx, %ebx
	testl	%r12d, (%r14)
	jne	LBB0_14
	jmp	LBB0_22
LBB0_5:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	testl	%r12d, (%rcx)
	jne	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
LBB0_10:
	movq	_RPC_RECV_FLAG_CTRL@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_12
## %bb.11:
	movl	(%r15), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_memcpy
	movslq	(%r15), %rax
	leaq	(%r13,%rax,4), %r13
LBB0_12:
	movslq	(%r14), %rax
	shlq	$2, %rax
	addq	8(%r14), %rax
	xorl	%edi, %edi
	cmpq	%rax, %r13
	sete	%dil
	callq	_vcos_assert
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_get_handle
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_vchiq_release_message
	movq	_RPC_RECV_FLAG_BULK@GOTPCREL(%rip), %r14
	testl	%r12d, (%r14)
	je	LBB0_22
LBB0_14:
	movl	(%r15), %edx
	testl	%edx, %edx
	je	LBB0_22
## %bb.15:
	movq	_RPC_RECV_FLAG_BULK_SCATTER@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_21
## %bb.16:
	movl	%ebx, %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpl	4(%rbx), %edx
	jne	LBB0_20
## %bb.17:
	cmpl	$0, 12(%rbx)
	jne	LBB0_20
## %bb.18:
	cmpl	$0, 16(%rbx)
	je	LBB0_19
LBB0_20:
	imull	8(%rbx), %edx
	movl	%edx, %edi
	callq	_check_workspace
	movq	_workspace@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movl	(%r15), %edx
	imull	8(%rbx), %edx
	movq	%r13, %rdi
	callq	_recv_bulk
	movl	(%r15), %esi
	movl	4(%rbx), %edx
	movl	8(%rbx), %ecx
	movl	12(%rbx), %r8d
	movl	16(%rbx), %r9d
	movq	(%r14), %rax
	movq	%rax, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rpc_scatter
	movl	%r12d, %ebx
	jmp	LBB0_22
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_21:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_recv_bulk
LBB0_22:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	imull	8(%rbx), %edx
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_recv_bulk
	movl	%r12d, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_RPC_RECV_FLAG_RES,4,2          ## @RPC_RECV_FLAG_RES
	.comm	_RPC_RECV_FLAG_CTRL,4,2         ## @RPC_RECV_FLAG_CTRL
	.comm	_RPC_RECV_FLAG_LEN,4,2          ## @RPC_RECV_FLAG_LEN
	.comm	_RPC_RECV_FLAG_BULK,4,2         ## @RPC_RECV_FLAG_BULK
	.comm	_RPC_RECV_FLAG_BULK_SCATTER,4,2 ## @RPC_RECV_FLAG_BULK_SCATTER
	.comm	_workspace,8,3                  ## @workspace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_recv                       ; -- Begin function rpc_recv
	.p2align	2
_rpc_recv:                              ; @rpc_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x20, x2
	str	x1, [sp]                        ; 8-byte Folded Spill
	mov	x21, x0
	add	x8, sp, #12
Lloh0:
	adrp	x23, _RPC_RECV_FLAG_RES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RPC_RECV_FLAG_RES@GOTPAGEOFF]
	cmp	x2, #0
	csel	x26, x8, x2, eq
	ldr	w8, [x23]
Lloh2:
	adrp	x28, _RPC_RECV_FLAG_CTRL@GOTPAGE
Lloh3:
	ldr	x28, [x28, _RPC_RECV_FLAG_CTRL@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w8, w9, w8
Lloh4:
	adrp	x19, _RPC_RECV_FLAG_LEN@GOTPAGE
Lloh5:
	ldr	x19, [x19, _RPC_RECV_FLAG_LEN@GOTPAGEOFF]
	ldr	w9, [x19]
	orr	w8, w8, w9
Lloh6:
	adrp	x27, _RPC_RECV_FLAG_BULK@GOTPAGE
Lloh7:
	ldr	x27, [x27, _RPC_RECV_FLAG_BULK@GOTPAGEOFF]
	and	w24, w8, w3
	ldr	w8, [x27]
	and	w8, w8, w3
	orr	w8, w24, w8
	cmp	w8, #0
	cset	w0, ne
	bl	_vcos_assert
	ldr	w8, [x28]
	tst	w8, w22
	cset	w8, eq
	ldr	w9, [x27]
	tst	w9, w22
	cset	w9, eq
	orr	w0, w8, w9
	bl	_vcos_assert
	cbz	w24, LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_merge_flush
	mov	x0, x21
	bl	_get_queue
	bl	_vchiu_queue_pop
	mov	x24, x0
	ldr	x25, [x0, #8]
	ldr	w8, [x0]
	ldr	w9, [x19]
	tst	w9, w22
	cset	w9, ne
	ldr	w10, [x23]
	tst	w10, w22
	cset	w10, ne
	lsl	w10, w10, #2
	add	w9, w10, w9, lsl #2
	cmp	w8, w9
	cset	w0, ge
	bl	_vcos_assert
	ldr	w8, [x19]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x25], #16
	str	w8, [x26]
LBB0_3:
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.4:
	ldr	w23, [x25], #16
	b	LBB0_8
LBB0_5:
	ldr	w8, [x26]
	cbz	w8, LBB0_18
; %bb.6:
	mov	x0, x21
	bl	_merge_flush
	mov	w23, #0
	b	LBB0_11
LBB0_7:
	mov	w23, #0
LBB0_8:
	ldr	w8, [x28]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.9:
	ldr	w2, [x26]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x25
	bl	_memcpy
	ldrsw	x8, [x26]
	add	x25, x25, x8, lsl #2
LBB0_10:
	ldr	x8, [x24, #8]
	ldrsw	x9, [x24]
	add	x8, x8, x9, lsl #2
	cmp	x25, x8
	cset	w0, eq
	bl	_vcos_assert
	mov	x0, x21
	bl	_get_handle
	mov	x1, x24
	bl	_vchiq_release_message
LBB0_11:
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_21
; %bb.12:
	ldr	w2, [x26]
	cbz	w2, LBB0_21
; %bb.13:
Lloh8:
	adrp	x8, _RPC_RECV_FLAG_BULK_SCATTER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RPC_RECV_FLAG_BULK_SCATTER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_20
; %bb.14:
	ldr	w8, [x20, #4]
	cmp	w2, w8
	b.ne	LBB0_17
; %bb.15:
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_17
; %bb.16:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_19
LBB0_17:
	ldr	w8, [x20, #8]
	mul	w0, w8, w2
	bl	_check_workspace
Lloh11:
	adrp	x19, _workspace@GOTPAGE
Lloh12:
	ldr	x19, [x19, _workspace@GOTPAGEOFF]
	ldr	x1, [x19]
	ldr	w8, [x20, #8]
	ldr	w9, [x26]
	mul	w2, w9, w8
	mov	x0, x21
	bl	_recv_bulk
	ldr	w1, [x26]
	ldp	w2, w3, [x20, #4]
	ldp	w4, w5, [x20, #12]
	ldr	x6, [x19]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_rpc_scatter
	b	LBB0_21
LBB0_18:
	mov	w23, #0
	b	LBB0_21
LBB0_19:
	ldr	w8, [x20, #8]
	mul	w2, w8, w2
LBB0_20:
	mov	x0, x21
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	bl	_recv_bulk
LBB0_21:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RPC_RECV_FLAG_RES,4,2          ; @RPC_RECV_FLAG_RES
	.comm	_RPC_RECV_FLAG_CTRL,4,2         ; @RPC_RECV_FLAG_CTRL
	.comm	_RPC_RECV_FLAG_LEN,4,2          ; @RPC_RECV_FLAG_LEN
	.comm	_RPC_RECV_FLAG_BULK,4,2         ; @RPC_RECV_FLAG_BULK
	.comm	_RPC_RECV_FLAG_BULK_SCATTER,4,2 ; @RPC_RECV_FLAG_BULK_SCATTER
	.comm	_workspace,8,3                  ; @workspace
.subsections_via_symbols
