	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfb_recv_update_msg
_rfb_recv_update_msg:                   ## @rfb_recv_update_msg
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	-63(%rbp), %rsi
	movl	%r14d, %edi
	movl	$31, %edx
	callq	_stream_read
	xorl	%eax, %eax
	callq	_console_refresh
	xorl	%eax, %eax
	callq	_console_get_image
	movq	%rax, %rbx
	movq	-64(%rbp), %rdi
	callq	_htons
	movq	%rax, -64(%rbp)
	movq	-56(%rbp), %rdi
	callq	_htons
	movq	%rax, -56(%rbp)
	movq	-48(%rbp), %rdi
	callq	_htons
	movq	%rax, -48(%rbp)
	movq	-40(%rbp), %rdi
	callq	_htons
	movq	%rax, -40(%rbp)
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	cmpq	%rcx, -48(%rbp)
	jne	LBB0_2
## %bb.1:
	cmpq	%rax, %rdx
	je	LBB0_4
LBB0_2:
	movq	%rcx, (%r12)
	movq	%rdx, 8(%r12)
	cmpq	$0, 16(%r12)
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_rfb_send_resize_update_msg
LBB0_4:
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_rfb_send_screen
LBB0_6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rfb_recv_update_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfb_recv_update_msg
_rfb_recv_update_msg:                   ; @rfb_recv_update_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x19, x1
	mov	x20, x0
	mov	x8, sp
	orr	x1, x8, #0x1
	mov	x0, x19
	mov	w2, #31
	bl	_stream_read
	bl	_console_refresh
	bl	_console_get_image
	mov	x22, x0
	ldr	x0, [sp]
	bl	_htons
	str	x0, [sp]
	ldr	x0, [sp, #8]
	bl	_htons
	str	x0, [sp, #8]
	ldr	x0, [sp, #16]
	bl	_htons
	str	x0, [sp, #16]
	ldr	x0, [sp, #24]
	bl	_htons
	str	x0, [sp, #24]
	ldr	x10, [sp, #16]
	ldp	x8, x9, [x22]
	cmp	x10, x8
	ccmp	x9, x0, #0, eq
	b.eq	LBB0_3
; %bb.1:
	stp	x8, x9, [x20]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_rfb_send_resize_update_msg
LBB0_3:
	cbnz	w21, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_rfb_send_screen
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rfb_recv_update_msg
.subsections_via_symbols
