	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_client_recv                    ## -- Begin function client_recv
	.p2align	4, 0x90
_client_recv:                           ## @client_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_client_enabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_mutex@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_queue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_qsize@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r12
	movl	%r12d, %r15d
	addq	%rax, %r12
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%rbx), %rcx
	decq	%rcx
	cmpq	%rax, %rcx
	jb	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	decq	%rbx
	cmpb	$10, (%rcx)
	jne	LBB0_3
## %bb.5:
	leal	(%r15,%rbx), %r14d
	incl	%r14d
	leal	(%r15,%rbx), %edi
	addl	$2, %edi
	callq	_malloc
	movq	%rax, %r13
	movq	_queue@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movslq	%r14d, %r14
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movb	$0, (%r13,%r14)
	movl	%r15d, %edx
	notl	%edx
	movq	_qsize@GOTPCREL(%rip), %r14
	addl	(%r14), %edx
	subl	%ebx, %edx
	movq	_queue@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	(%r12,%rbx), %rsi
	incq	%rsi
	callq	_memmove
	movl	%r15d, %eax
	notl	%eax
	movq	%r14, %rcx
	addl	(%r14), %eax
	subl	%ebx, %eax
	movl	%eax, (%r14)
	movq	_bytes_received@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	leal	(%rbx,%r15), %ecx
	incl	%ecx
	movl	%ecx, (%rax)
LBB0_6:
	movq	_mutex@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	jmp	LBB0_7
LBB0_1:
	xorl	%r13d, %r13d
LBB0_7:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_client_enabled,4,2             ## @client_enabled
	.comm	_mutex,4,2                      ## @mutex
	.comm	_queue,8,3                      ## @queue
	.comm	_qsize,4,2                      ## @qsize
	.comm	_bytes_received,4,2             ## @bytes_received
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_client_recv                    ; -- Begin function client_recv
	.p2align	2
_client_recv:                           ; @client_recv
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _client_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _client_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
Lloh3:
	adrp	x0, _mutex@GOTPAGE
Lloh4:
	ldr	x0, [x0, _mutex@GOTPAGEOFF]
	bl	_mtx_lock
	mov	x21, #0
Lloh5:
	adrp	x24, _queue@GOTPAGE
Lloh6:
	ldr	x24, [x24, _queue@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh7:
	adrp	x22, _qsize@GOTPAGE
Lloh8:
	ldr	x22, [x22, _qsize@GOTPAGEOFF]
	ldrsw	x9, [x22]
	and	x23, x9, #0xffffffff
	add	x25, x8, x9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x25, x21
	sub	x9, x9, #1
	cmp	x9, x8
	b.lo	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w9, [x9]
	sub	x21, x21, #1
	cmp	w9, #10
	b.ne	LBB0_2
; %bb.4:
	add	w8, w23, w21
	add	w20, w8, #1
	add	w8, w23, w21
	add	w0, w8, #2
	bl	_malloc
	mov	x19, x0
	ldr	x1, [x24]
	mov	x2, x20
	bl	_memcpy
	strb	wzr, [x19, w20, sxtw]
	ldr	w8, [x22]
	mvn	w9, w23
	add	w8, w9, w8
	sub	w2, w8, w21
	ldr	x0, [x24]
	add	x8, x25, x21
	add	x1, x8, #1
	bl	_memmove
	ldr	w8, [x22]
	mvn	w9, w21
	sub	w8, w8, w23
	add	w8, w9, w8
Lloh9:
	adrp	x9, _bytes_received@GOTPAGE
Lloh10:
	ldr	x9, [x9, _bytes_received@GOTPAGEOFF]
	str	w8, [x22]
	ldr	w8, [x9]
	add	w8, w23, w8
	add	w8, w8, w21
	add	w8, w8, #1
	str	w8, [x9]
	b	LBB0_7
LBB0_5:
	mov	x19, #0
	b	LBB0_8
LBB0_6:
	mov	x19, #0
LBB0_7:
Lloh11:
	adrp	x0, _mutex@GOTPAGE
Lloh12:
	ldr	x0, [x0, _mutex@GOTPAGEOFF]
	bl	_mtx_unlock
LBB0_8:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_client_enabled,4,2             ; @client_enabled
	.comm	_mutex,4,2                      ; @mutex
	.comm	_queue,8,3                      ; @queue
	.comm	_qsize,4,2                      ; @qsize
	.comm	_bytes_received,4,2             ; @bytes_received
.subsections_via_symbols
