	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mconsole_reply_len             ## -- Begin function mconsole_reply_len
	.p2align	4, 0x90
_mconsole_reply_len:                    ## @mconsole_reply_len
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %eax
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -72(%rbp)
	movq	_MCONSOLE_MAX_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	movl	%r14d, %edi
	callq	_MIN
	movl	%eax, %r13d
	cmpl	%eax, %r14d
	movl	$1, %eax
	cmovel	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -68(%rbp)
	movq	-64(%rbp), %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	-64(%rbp), %rax
	movslq	%r13d, %rbx
	movb	$0, (%rax,%rbx)
	leal	1(%rbx), %eax
	movl	%eax, -56(%rbp)
	leal	17(%rbx), %edx
	movl	16(%r12), %edi
	movq	8(%r12), %r8
	movl	(%r12), %r9d
	leaq	-72(%rbp), %rsi
	xorl	%ecx, %ecx
	callq	_sendto
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	%rbx, %r15
	xorl	%eax, %eax
	subl	%ebx, %r14d
	jg	LBB0_1
	jmp	LBB0_4
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCONSOLE_MAX_DATA,8,3          ## @MCONSOLE_MAX_DATA
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mconsole_reply_len             ; -- Begin function mconsole_reply_len
	.p2align	2
_mconsole_reply_len:                    ; @mconsole_reply_len
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x4
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _MCONSOLE_MAX_DATA@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MCONSOLE_MAX_DATA@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	w3, [sp, #8]
	ldr	x8, [x24]
	sub	x1, x8, #1
	mov	x0, x20
	bl	_MIN
	mov	x23, x0
	cmp	w20, w0
	csinc	w8, w19, wzr, eq
	str	w8, [sp, #12]
	ldr	x0, [sp, #16]
	mov	x1, x21
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [sp, #16]
	sxtw	x25, w23
	strb	wzr, [x8, x25]
	add	w8, w23, #1
	str	w8, [sp, #24]
	add	w2, w23, #17
	ldr	w0, [x22, #16]
	ldr	x4, [x22, #8]
	ldr	w5, [x22]
	add	x1, sp, #8
	mov	w3, #0
	bl	_sendto
	tbnz	w0, #31, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w3, #0
	mov	w0, #0
	add	x21, x21, x25
	sub	w20, w20, w25
	cmp	w20, #0
	b.gt	LBB0_1
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MCONSOLE_MAX_DATA,8,3          ; @MCONSOLE_MAX_DATA
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
