	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pump_io_round
_pump_io_round:                         ## @pump_io_round
	.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
	testl	%esi, %esi
	jle	LBB0_25
## %bb.1:
	movq	%rdi, %r15
	movl	%esi, %r14d
	imulq	$56, %r14, %r8
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$56, %rcx
	cmpq	%rcx, %r8
	je	LBB0_5
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rcx), %rdi
	testq	%rdi, %rdi
	js	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%esi, %rsi
	movq	%rsi, %rax
	shlq	$4, %rax
	leaq	(%rdx,%rax), %rbx
	movq	%rdi, (%rdx,%rax)
	movl	8(%r15,%rcx), %edi
	movl	%edi, 8(%rdx,%rax)
	incl	%esi
	movq	%rbx, 48(%r15,%rcx)
	jmp	LBB0_2
LBB0_5:
	testl	%esi, %esi
	je	LBB0_25
## %bb.6:
	movq	%rdx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$-1, %edx
	callq	_poll
	testq	%rax, %rax
	jns	LBB0_9
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_EINTR@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_26
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_die_errno
LBB0_9:
	movq	_POLLIN@GOTPCREL(%rip), %r12
	movq	_POLLERR@GOTPCREL(%rip), %rbx
	movq	_POLLNVAL@GOTPCREL(%rip), %r13
	jmp	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r15), %rdi
	callq	_close
	movq	$-1, (%r15)
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	$56, %r15
	decq	%r14
	je	LBB0_24
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	js	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	48(%r15), %rcx
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r12), %edx
	orl	%eax, %edx
	movq	_POLLHUP@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	orl	(%rbx), %edx
	orl	(%r13), %edx
	testl	%edx, 12(%rcx)
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	%eax, 8(%r15)
	jne	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	40(%r15), %esi
	movq	32(%r15), %rdx
	callq	_xwrite
	testq	%rax, %rax
	js	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	addl	%eax, 40(%r15)
	subq	%rax, 32(%r15)
	je	LBB0_19
	jmp	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r15), %rdi
	callq	_close
	movq	$-1, (%r15)
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	8(%r15), %eax
	cmpl	(%r12), %eax
	jne	LBB0_12
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	28(%r15), %edi
	movl	(%r15), %esi
	movl	24(%r15), %edx
	callq	_strbuf_read_once
	testq	%rax, %rax
	js	LBB0_10
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	jne	LBB0_12
	jmp	LBB0_11
LBB0_25:
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_24:
	movl	$1, %eax
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"poll failed"

	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLHUP,4,2                    ## @POLLHUP
	.comm	_POLLERR,4,2                    ## @POLLERR
	.comm	_POLLNVAL,4,2                   ## @POLLNVAL
	.no_dead_strip	_pump_io_round
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pump_io_round
_pump_io_round:                         ; @pump_io_round
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w1, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x8, x1
	mov	x19, x0
	mov	w1, #0
	mov	w20, w8
	mov	x8, x20
	mov	x9, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #56
	subs	x8, x8, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	tbnz	x10, #63, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x2, w1, sxtw #4
	str	x10, [x11]
	ldr	w10, [x9, #8]
	str	w10, [x11, #8]
	add	w1, w1, #1
	str	x11, [x9, #48]
	b	LBB0_2
LBB0_5:
	cbz	w1, LBB0_9
; %bb.6:
	mov	x0, x2
	mov	w2, #-1
	bl	_poll
Lloh0:
	adrp	x21, _errno@GOTPAGE
Lloh1:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	tbz	x0, #63, LBB0_12
; %bb.7:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _EINTR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die_errno
LBB0_12:
Lloh7:
	adrp	x22, _POLLOUT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _POLLOUT@GOTPAGEOFF]
Lloh9:
	adrp	x23, _POLLIN@GOTPAGE
Lloh10:
	ldr	x23, [x23, _POLLIN@GOTPAGEOFF]
Lloh11:
	adrp	x24, _POLLHUP@GOTPAGE
Lloh12:
	ldr	x24, [x24, _POLLHUP@GOTPAGEOFF]
Lloh13:
	adrp	x25, _POLLERR@GOTPAGE
Lloh14:
	ldr	x25, [x25, _POLLERR@GOTPAGEOFF]
	mov	x26, #-1
Lloh15:
	adrp	x27, _POLLNVAL@GOTPAGE
Lloh16:
	ldr	x27, [x27, _POLLNVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x21]
	str	x8, [x19, #16]
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [x19]
	bl	_close
	str	x26, [x19]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x19, x19, #56
	subs	x20, x20, #1
	b.eq	LBB0_8
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	tbnz	x0, #63, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x19, #48]
	ldr	w9, [x8, #12]
	ldr	w8, [x22]
	ldr	w10, [x23]
	orr	w10, w10, w8
	ldr	w11, [x24]
	orr	w10, w10, w11
	ldr	w11, [x25]
	orr	w10, w10, w11
	ldr	w11, [x27]
	orr	w10, w10, w11
	tst	w10, w9
	b.eq	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w9, [x19, #8]
	cmp	w9, w8
	b.ne	LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w1, [x19, #40]
	ldr	x2, [x19, #32]
	bl	_xwrite
	tbnz	x0, #63, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19, #40]
	add	w8, w8, w0
	str	w8, [x19, #40]
	ldr	x8, [x19, #32]
	subs	x8, x8, x0
	str	x8, [x19, #32]
	b.eq	LBB0_22
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x21]
	str	x8, [x19, #16]
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [x19]
	bl	_close
	str	x26, [x19]
LBB0_23:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19, #8]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.24:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w1, [x19]
	ldp	w2, w0, [x19, #24]
	bl	_strbuf_read_once
	tbnz	x0, #63, LBB0_13
; %bb.25:                               ;   in Loop: Header=BB0_16 Depth=1
	cbnz	x0, LBB0_15
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"poll failed"

	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLHUP,4,2                    ; @POLLHUP
	.comm	_POLLERR,4,2                    ; @POLLERR
	.comm	_POLLNVAL,4,2                   ; @POLLNVAL
	.no_dead_strip	_pump_io_round
.subsections_via_symbols
