	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfb_recv_cuttext_msg
_rfb_recv_cuttext_msg:                  ## @rfb_recv_cuttext_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-71(%rbp), %rsi
	movl	%ebx, %edi
	movl	$3, %edx
	callq	_stream_read
	movl	-72(%rbp), %edi
	callq	_htonl
	movl	%eax, -72(%rbp)
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	%eax, %edx
	movl	$32, %r15d
	leaq	-64(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$32, %edx
	cmovael	%r15d, %edx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_stream_read
	movl	-72(%rbp), %edx
	subl	%eax, %edx
	movl	%edx, -72(%rbp)
	jg	LBB0_2
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rfb_recv_cuttext_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_cuttext_msg
_rfb_recv_cuttext_msg:                  ; @rfb_recv_cuttext_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	x8, sp
	orr	x1, x8, #0x1
	mov	x0, x19
	mov	w2, #3
	bl	_stream_read
	ldr	w0, [sp]
	bl	_htonl
	str	w0, [sp]
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w0, #32
	csel	w2, w0, w20, lo
	add	x1, sp, #8
	mov	x0, x19
	bl	_stream_read
	ldr	w8, [sp]
	sub	w0, w8, w0
	str	w0, [sp]
	cmp	w0, #0
	b.gt	LBB0_2
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rfb_recv_cuttext_msg
.subsections_via_symbols
