	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_client_data
_read_client_data:                      ## @read_client_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$288, %rsp                      ## imm = 0x120
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	-304(%rbp), %rsi
	leaq	-300(%rbp), %rdx
	leaq	-296(%rbp), %rcx
	callq	_find_unit_by_fd
	leaq	-288(%rbp), %rsi
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	movl	$256, %edx                      ## imm = 0x100
	xorl	%ecx, %ecx
	callq	_recv
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movq	-296(%rbp), %rax
	movq	8(%rax), %rdi
	movl	(%rax), %esi
	addl	%ebx, %esi
	callq	_realloc
	movq	-296(%rbp), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	leaq	-288(%rbp), %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	-296(%rbp), %rax
	addl	%ebx, (%rax)
	movl	$1, %r14d
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %eax
	addq	$288, %rsp                      ## imm = 0x120
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_read_client_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_client_data
_read_client_data:                      ; @read_client_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	add	x1, sp, #20
	add	x2, sp, #16
	add	x3, sp, #8
	bl	_find_unit_by_fd
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #256
	mov	w3, #0
	bl	_recv
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #8]
	ldr	w8, [x8]
	add	w1, w8, w19
	bl	_realloc
	ldr	x8, [sp, #8]
	str	x0, [x8, #8]
	cbz	x0, LBB0_4
; %bb.2:
	ldrsw	x8, [x8]
	add	x0, x0, x8, lsl #2
	add	x1, sp, #24
	mov	x2, x19
	bl	_memcpy
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	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_6
; %bb.5:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_client_data
.subsections_via_symbols
