	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdp_recv
_rdp_recv:                              ## @rdp_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_rdp_recv.rdp_s(%rip), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_g_next_packet@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	cmpq	8(%rax), %rcx
	jae	LBB0_3
## %bb.10:
	movq	%rcx, (%rax)
	jmp	LBB0_11
LBB0_3:
	leaq	-12(%rbp), %rdi
	callq	_sec_recv
	movq	%rax, _rdp_recv.rdp_s(%rip)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	-12(%rbp), %ecx
	cmpl	$3, %ecx
	je	LBB0_9
## %bb.6:
	cmpl	$255, %ecx
	jne	LBB0_8
## %bb.7:
	movq	8(%rax), %rcx
	movq	_g_next_packet@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movl	$0, (%rbx)
	jmp	LBB0_13
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_9:
	movq	(%rax), %rcx
	movq	_g_next_packet@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
LBB0_11:
	movq	%rax, %rdi
	callq	_in_uint16_le
	movq	_rdp_recv.rdp_s(%rip), %rdi
	callq	_in_uint16_le
	movq	_rdp_recv.rdp_s(%rip), %rdi
	movl	$2, %esi
	callq	_in_uint8s
	jmp	LBB0_12
LBB0_8:
	movq	%rax, %rdi
	callq	_rdp5_process
LBB0_12:
	movl	$0, (%rbx)
	movq	_rdp_recv.rdp_s(%rip), %rax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_rdp_recv.rdp_s,8,3 ## @rdp_recv.rdp_s
	.comm	_g_next_packet,8,3              ## @g_next_packet
	.comm	_g_packetno,4,2                 ## @g_packetno
	.no_dead_strip	_rdp_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdp_recv
_rdp_recv:                              ; @rdp_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	adrp	x20, _rdp_recv.rdp_s@PAGE
	ldr	x0, [x20, _rdp_recv.rdp_s@PAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _g_next_packet@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_next_packet@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	cmp	x8, #0
	ccmp	x8, x9, #2, ne
	b.lo	LBB0_6
LBB0_2:
	add	x0, sp, #12
	bl	_sec_recv
	str	x0, [x20, _rdp_recv.rdp_s@PAGEOFF]
	cbz	x0, LBB0_11
; %bb.3:
	ldr	w8, [sp, #12]
	cmp	w8, #3
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #255
	b.ne	LBB0_9
; %bb.5:
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _g_next_packet@GOTPAGE
Lloh4:
	ldr	x9, [x9, _g_next_packet@GOTPAGEOFF]
Lloh5:
	str	x8, [x9]
	str	wzr, [x19]
	b	LBB0_11
LBB0_6:
	str	x8, [x0]
	b	LBB0_8
LBB0_7:
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _g_next_packet@GOTPAGE
Lloh7:
	ldr	x9, [x9, _g_next_packet@GOTPAGEOFF]
Lloh8:
	str	x8, [x9]
LBB0_8:
	bl	_in_uint16_le
	ldr	x0, [x20, _rdp_recv.rdp_s@PAGEOFF]
	bl	_in_uint16_le
	ldr	x0, [x20, _rdp_recv.rdp_s@PAGEOFF]
	mov	w1, #2
	bl	_in_uint8s
	b	LBB0_10
LBB0_9:
	bl	_rdp5_process
LBB0_10:
	str	wzr, [x19]
	ldr	x0, [x20, _rdp_recv.rdp_s@PAGEOFF]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_rdp_recv.rdp_s,8,3 ; @rdp_recv.rdp_s
	.comm	_g_next_packet,8,3              ; @g_next_packet
	.comm	_g_packetno,4,2                 ; @g_packetno
	.no_dead_strip	_rdp_recv
.subsections_via_symbols
