	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_n_bytes
_read_n_bytes:                          ## @read_n_bytes
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edi, -64(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, -60(%rbp)
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	$-1, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -56(%rbp)
	movq	_tcp_read_time_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rdi
	movl	$1, %esi
	callq	_poll_retry
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %eax
	testl	%eax, -56(%rbp)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_read
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	decq	%r12
	jne	LBB0_3
LBB0_6:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r13d
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_tcp_read_time_out,4,2          ## @tcp_read_time_out
	.no_dead_strip	_read_n_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_n_bytes
_read_n_bytes:                          ; @read_n_bytes
	.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, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x22, _POLLIN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _POLLIN@GOTPAGEOFF]
	ldr	w8, [x22]
	stp	w0, w8, [sp, #8]
	cbz	x2, LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x21, x0
Lloh5:
	adrp	x23, _tcp_read_time_out@GOTPAGE
Lloh6:
	ldr	x23, [x23, _tcp_read_time_out@GOTPAGEOFF]
	mov	x24, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #16]
	ldr	w2, [x23]
	add	x0, sp, #8
	mov	w1, #1
	bl	_poll_retry
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #16]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	bl	_read
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	subs	x24, x24, #1
	b.ne	LBB0_2
	b	LBB0_7
LBB0_6:
	mov	w19, #-1
LBB0_7:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	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
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_tcp_read_time_out,4,2          ; @tcp_read_time_out
	.no_dead_strip	_read_n_bytes
.subsections_via_symbols
