	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acn_read_n_bytes_with_timeout
_acn_read_n_bytes_with_timeout:         ## @acn_read_n_bytes_with_timeout
	.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	%esi, %ebx
	movq	%rdi, %r15
	movl	$5, -80(%rbp)
	movq	$0, -72(%rbp)
	movl	(%rdi), %r14d
	leaq	-60(%rbp), %r12
	movq	%r12, %rdi
	callq	_FD_ZERO
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_FD_SET
	leaq	-44(%rbp), %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	1(%r14), %r15d
	xorl	%r13d, %r13d
	movl	$-1, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	leaq	-44(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-80(%rbp), %r8
	callq	_select
	incl	%eax
	cmpl	$2, %eax
	jb	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_recv
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %r13d
	subl	%eax, %ebx
	jne	LBB0_2
LBB0_5:
	xorl	%r12d, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_acn_read_n_bytes_with_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acn_read_n_bytes_with_timeout
_acn_read_n_bytes_with_timeout:         ; @acn_read_n_bytes_with_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x21, x0
	mov	w8, #5
	str	w8, [sp, #16]
	str	xzr, [sp, #24]
	ldr	w20, [x0]
	add	x0, sp, #12
	bl	_FD_ZERO
	add	x1, sp, #12
	mov	x0, x20
	bl	_FD_SET
	add	x0, sp, #8
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
	cbz	w19, LBB0_5
; %bb.1:
	mov	w22, #0
	ldr	x23, [x21, #8]
	add	w21, w20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	add	x4, sp, #16
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	bl	_select
	add	w8, w0, #1
	cmp	w8, #2
	b.lo	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, x23, w22, sxtw #2
	mov	x0, x20
	mov	x2, x19
	mov	w3, #0
	bl	_recv
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w0, w22
	subs	w19, w19, w0
	b.ne	LBB0_2
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_acn_read_n_bytes_with_timeout
.subsections_via_symbols
