	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mcs_recv                       ## -- Begin function mcs_recv
	.p2align	4, 0x90
_mcs_recv:                              ## @mcs_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_iso_recv
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	cmpl	$3, (%rbx)
	jne	LBB0_9
LBB0_3:
	movq	%r15, %rdi
	callq	_in_uint8
	movq	_MCS_SDIN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.4:
	movq	_MCS_DPUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_in_uint8s
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_in_uint16_be
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_in_uint8s
	movq	%r15, %rdi
	callq	_in_uint8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MCS_SDIN,4,2                   ## @MCS_SDIN
	.comm	_MCS_DPUM,4,2                   ## @MCS_DPUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expected data, got %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mcs_recv                       ; -- Begin function mcs_recv
	.p2align	2
_mcs_recv:                              ; @mcs_recv
	.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	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_iso_recv
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
	cbz	x21, LBB0_3
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, #3
	b.ne	LBB0_8
LBB0_3:
	mov	x0, x19
	bl	_in_uint8
Lloh0:
	adrp	x8, _MCS_SDIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCS_SDIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _MCS_DPUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCS_DPUM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_6:
	mov	x19, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	w1, #2
	bl	_in_uint8s
	ldr	w1, [x20]
	mov	x0, x19
	bl	_in_uint16_be
	mov	x0, x19
	mov	w1, #1
	bl	_in_uint8s
	mov	x0, x19
	bl	_in_uint8
LBB0_8:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MCS_SDIN,4,2                   ; @MCS_SDIN
	.comm	_MCS_DPUM,4,2                   ; @MCS_DPUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expected data, got %d\n"

.subsections_via_symbols
