	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_xfer
_recv_xfer:                             ## @recv_xfer
	.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
	movl	%edi, %r15d
	movq	_use_async@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_rs@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
LBB0_2:
	testl	%r15d, %r15d
	jle	LBB0_14
## %bb.3:
	xorl	%r13d, %r13d
	movq	_buf@GOTPCREL(%rip), %r12
	movq	_flags@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:
	movq	_poll_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_do_poll
	testl	%eax, %eax
	jne	LBB0_6
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_rs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%r13d, %rax
	movq	(%r12), %rsi
	addq	%rax, %rsi
	movl	%r15d, %edx
	subl	%eax, %edx
	movl	(%r14), %ecx
	callq	_rs_recv
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addl	%ebx, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r15d, %r13d
	jge	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_use_async@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_7
LBB0_14:
	movq	_verify@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.15:
	movq	_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r15d, %esi
	callq	_verify_buf
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_6:
	movl	%eax, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_use_async,8,3                  ## @use_async
	.comm	_rs,4,2                         ## @rs
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_poll_timeout,4,2               ## @poll_timeout
	.comm	_buf,8,3                        ## @buf
	.comm	_flags,4,2                      ## @flags
	.comm	_errno,8,3                      ## @errno
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rrecv"

	.comm	_verify,8,3                     ## @verify
	.no_dead_strip	_recv_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_xfer
_recv_xfer:                             ; @recv_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x21, _use_async@GOTPAGE
Lloh1:
	ldr	x21, [x21, _use_async@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x22, _rs@GOTPAGE
Lloh3:
	ldr	x22, [x22, _rs@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w9, [x22]
Lloh4:
	adrp	x10, _POLLIN@GOTPAGE
Lloh5:
	ldr	x10, [x10, _POLLIN@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	stp	w10, w9, [sp, #8]
LBB0_2:
Lloh7:
	adrp	x23, _buf@GOTPAGE
Lloh8:
	ldr	x23, [x23, _buf@GOTPAGEOFF]
	cmp	w19, #1
	b.lt	LBB0_10
; %bb.3:
	mov	w24, #0
Lloh9:
	adrp	x25, _flags@GOTPAGE
Lloh10:
	ldr	x25, [x25, _flags@GOTPAGEOFF]
Lloh11:
	adrp	x27, _EWOULDBLOCK@GOTPAGE
Lloh12:
	ldr	x27, [x27, _EWOULDBLOCK@GOTPAGEOFF]
Lloh13:
	adrp	x28, _EAGAIN@GOTPAGE
Lloh14:
	ldr	x28, [x28, _EAGAIN@GOTPAGEOFF]
Lloh15:
	adrp	x26, _poll_timeout@GOTPAGE
Lloh16:
	ldr	x26, [x26, _poll_timeout@GOTPAGEOFF]
	cbz	x8, LBB0_5
LBB0_4:
	ldr	w1, [x26]
	add	x0, sp, #8
	bl	_do_poll
	cbnz	w0, LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldr	x8, [x23]
	add	x1, x8, w24, sxtw
	sub	w2, w19, w24
	ldr	w3, [x25]
	bl	_rs_recv
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w20, w24
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x9, [x27]
	ldr	x10, [x28]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w24, w19
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	cbnz	x8, LBB0_4
	b	LBB0_5
LBB0_10:
Lloh20:
	adrp	x8, _verify@GOTPAGE
Lloh21:
	ldr	x8, [x8, _verify@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x0, [x23]
	mov	x1, x19
	bl	_verify_buf
	mov	x20, x0
	cbnz	w0, LBB0_14
LBB0_12:
	mov	w20, #0
	b	LBB0_14
LBB0_13:
	mov	x20, x0
LBB0_14:
	mov	x0, x20
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_14
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_use_async,8,3                  ; @use_async
	.comm	_rs,4,2                         ; @rs
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_poll_timeout,4,2               ; @poll_timeout
	.comm	_buf,8,3                        ; @buf
	.comm	_flags,4,2                      ; @flags
	.comm	_errno,8,3                      ; @errno
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rrecv"

	.comm	_verify,8,3                     ; @verify
	.no_dead_strip	_recv_xfer
.subsections_via_symbols
