	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function completeio_recv
_completeio_recv:                       ## @completeio_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	jle	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	jle	LBB0_7
## %bb.2:
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r15
	leaq	-32(%rbp), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%rbx)
	jle	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %edi
	callq	_ISC_LIST_EMPTY
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rbx), %edi
	callq	_ISC_LIST_HEAD
	movq	%rax, -32(%rbp)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_fill_recv
	movq	-32(%rbp), %rax
	movq	(%rax), %rcx
	cmpq	8(%rax), %rcx
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %ecx
	movl	%ecx, 16(%rax)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_send_recvdone_event
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
	.no_dead_strip	_completeio_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function completeio_recv
_completeio_recv:                       ; @completeio_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	cmp	x8, #0
	b.le	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cmp	x8, #1
	b.lt	LBB0_1
; %bb.3:
Lloh0:
	adrp	x20, _ISC_R_SUCCESS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ISC_R_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
	cmp	x8, #0
	b.le	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	bl	_ISC_LIST_EMPTY
	cbnz	w0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #8]
	bl	_ISC_LIST_HEAD
	mov	x1, x0
	str	x0, [sp, #8]
	mov	x0, x19
	bl	_fill_recv
	ldr	x8, [sp, #8]
	ldp	x9, x10, [x8]
	cmp	x9, x10
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x20]
	str	w9, [x8, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_send_recvdone_event
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
	.no_dead_strip	_completeio_recv
.subsections_via_symbols
