	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NgAllocRecvAsciiMsg            ## -- Begin function NgAllocRecvAsciiMsg
	.p2align	4, 0x90
_NgAllocRecvAsciiMsg:                   ## @NgAllocRecvAsciiMsg
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %r12d
	movl	$4, -40(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_RCVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	leaq	-40(%rbp), %r8
	callq	_getsockopt
	movl	$-1, %ebx
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.1:
	movl	-36(%rbp), %edi
	callq	_malloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	-36(%rbp), %edx
	movl	%r12d, %edi
	movq	%rax, %rsi
	movq	%r14, %rcx
	callq	_NgRecvAsciiMsg
	movl	%eax, %ebx
	movl	%eax, -36(%rbp)
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	callq	_free
	movl	-36(%rbp), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_RCVBUF,4,2                  ## @SO_RCVBUF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NgAllocRecvAsciiMsg            ; -- Begin function NgAllocRecvAsciiMsg
	.p2align	2
_NgAllocRecvAsciiMsg:                   ; @NgAllocRecvAsciiMsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	w8, #4
	str	w8, [sp, #8]
Lloh0:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SO_RCVBUF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SO_RCVBUF@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	add	x4, sp, #8
	bl	_getsockopt
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x21
	mov	x3, x20
	bl	_NgRecvAsciiMsg
	str	w0, [sp, #12]
	tbz	w0, #31, LBB0_5
; %bb.3:
	ldr	x0, [x19]
	bl	_free
	ldr	w0, [sp, #12]
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_RCVBUF,4,2                  ; @SO_RCVBUF
.subsections_via_symbols
